I upgraded to struts 2.3.16.3 from 2.3.4.1 in my project and the following tag stopped working.
<s:param name="%{#key}" value="%{#keyValue}"/>
The param
is being used inside a s:url
tag. The name part is getting evaluated but the value is not evaluated and shows up as the text "keyValue" inside the url in page. This tag is in a contact jsp which gets included in other jsps. The key
and keyValue
are defined in the parent jsp.
For example, <s:set var="key" value="'billToId'" />
<s:set var="keyValue" value="'%{billToId}'"/>
I tried setting the following constant in struts.xml but it did not resolve the issue.
<constant name="struts.ognl.enableOGNLEvalExpression" value="true" />
I have put in a workaround for this issue but is there any way to read the value from value stack using this ognl expression.