You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Yves-Marie Lainé (JIRA)" <ji...@apache.org> on 2008/01/20 01:27:05 UTC

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

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.


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

Posted by "Dave Newton (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2447?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43046#action_43046 ] 

newton_dave edited comment on WW-2447 at 1/19/08 5:01 PM:
----------------------------------------------------------

<s:property value="parameters.param.class.name"/>

These types of issues should be addressed on the struts-user mailing list before filing a bug report.

      was (Author: newton_dave):
    <s:property value="parameters.param.class.name"/>

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


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

Posted by "Dave Newton (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2447?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43044#action_43044 ] 

Dave Newton commented on WW-2447:
---------------------------------

Wouldn't that mean that you believe the <s:set.../> tag isn't correct, since the <s:if...> tag "test" attribute is the same?

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


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

Posted by "Dave Newton (JIRA)" <ji...@apache.org>.
     [ 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.


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

Posted by "Dave Newton (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2447?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43046#action_43046 ] 

Dave Newton commented on WW-2447:
---------------------------------

<s:property value="parameters.param.class.name"/>


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


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

Posted by "Yves-Marie Lainé (JIRA)" <ji...@apache.org>.
    [ 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.