Recently I upgraded to struts 2.1 GA from 2.0. Noticed that param tag used
in action tag is no longer passing non array non string objects to the
action being called, actually throwing an exception

Change is under https://issues.apache.org/struts/browse/WW-1960

ActionComponent class has the following logic now

if (val.getClass().isArray() && String.class ==
val.getClass().getComponentType()) {
params.put(key, (String[]) val);
} else {
params.put(key, new String[] { val.toString() });
}

The objects created in my application cannot be passed to an action anymore.

<s:action name="myAction" executeResult="true">
     <s:param name="param1" value="myObjectMap['myObjectName']"/>
<s:action>


Is there anyway around this ? I really liked the nice feature to pass
objects around. Appreciate any suggestions

Reply via email to