By the way, I am using Struts 2.1.8.1. Actually it was a WebWork app and converting that into Struts2. Referring a parameter was so easy in ww with just '$paramName'. It's weird that I am stuck at such a simple thing. Any light on this would be of great help.
Thank you! ________________________________ To: user@struts.apache.org Sent: Sun, March 14, 2010 8:36:44 PM Subject: Parameter in If tag >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!