If tag - does'nt evaluate test expression correctly
---------------------------------------------------
Key: WW-2447
URL: https://issues.apache.org/struts/browse/WW-2447
Project: Struts 2
Issue Type: Bug
Components: Plugin - Tags, Value Stack
Affects Versions: 2.0.11
Environment: Tomcat 5.5 / win xp
Reporter: Yves-Marie Lainé
Hi,
Consider this code snippet :
<s:set name="param1" value="%{#parameters.param}"/>
<s:if test="%{#param1=='toCompare'}">
Somthing1
</s:if>
...If tag body is never evaluated, even when 'param' parameter is passed to the
page with 'toCompare' value. I checked 'param1' value before if tag, and the
value is ok.
Whereas this code work fine :
<s:set name="param2" value="%{'toCompare'}"/>
<s:if test="%{#param2=='toCompare'}">
Something2
</s:if>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.