I'm trying to pass a boolean "static" parameter to an Action and the value
getting set is always "false" no matter what I do it won't set it to "true".
<action name="MyAction"
class="com.xxx.MyClass"
method="doDisplay">
<param name="xxx">${true}</param>
<result>/struts/xxx.jsp</result>
<result name="notFound" type="redirectAction">OtherAction</result>
</action>
I put a break point in setXxx(boolean x) and it always gets called with x=
'false'.
I have tried different value expressions "${true}" and "true" and "1" and
"${1}" and "${1==1}"
and always get 'false' in the action setter.
There is no other 'xxx' parameter which is overriding it, if I remove the param
element then the setter doesn't get called at all.
Is this a bug or is there some other magic to get 'true' passed?