You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Dave Newton (JIRA)" <ji...@apache.org> on 2008/01/20 02:03:04 UTC

[jira] Closed: (WW-2447) If tag - does'nt evaluate test expression correctly

     [ https://issues.apache.org/struts/browse/WW-2447?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dave Newton closed WW-2447.
---------------------------

    Resolution: Not A Problem

Not a bug.

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