[ 
https://issues.apache.org/struts/browse/WW-2447?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43045#action_43045
 ] 

Yves-Marie Lainé commented on WW-2447:
--------------------------------------

Maybe, but if I test the value with property tag, the value seems to be ok 
before test tag :

<s:set name="param1" value="%{#parameters.param}"/>
<s:property value="%{#param1}"/>
<s:if test="%{#param1=='toCompare'}">
  Something
</s:if> 

this code, when calling "page.jsp?param=toCompare, render :

toCompare

but not "Something"...



> 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.

Reply via email to