struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kusuma Haranath Atmakuri <haranat...@yahoo.com>
Subject Parameter in If tag
Date Mon, 15 Mar 2010 01:36:44 GMT
>From the actions config, a parameter is being passed: 
<action ...>

    <result>main.jsp?paramName=paramValue</result>

When tried to access the paramName, it's fine when used in 'property' tag.
<s:property value=%{#parameters.paramName} /> will print 'paramValue'. 

But when used in 'If' tag, it does NOT. Is there anything missing here? Tried all the combinations
of #, {}, %, double quotes and single quotes. Any help would be greatly appreciated.
<s:if test="%{#parameters.paramName=='paramValue'}"> will return FALSE.

Thank you!


      
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message