Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

Parameter in If tag

Kusuma Haranath Atmakuri

2010-03-14

Replies: Find Java Web Hosting

Author LoginPost Reply
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!


   
©2008 gg3721.com - Jax Systems, LLC, U.S.A.