Try something like this.
<s:if test="%{parameter.index.type}=='ENUM'">
Gregor
That stops the exception but it's not evaluating correctly. If I add
<s:property value="value[#parameter.index].type"/> to my jsp immediately
prior to the <s:if>
tag then when it is ENUM, it prints ENUM and then fails to do anything with
the content of the <s:if> tag.
I should have mentioned that the reason I'm using value[#parameter.index] is
that my test is sitting
inside an iterator loop.
<s:iterator value="value" status="parameter">
<s:property value="value[#parameter.index].type"/>
<s:if test="<s:property value='value[#parameter.index].type'/>=='ENUM' ">
using single quotes around the value attribute stops the error message as
well but it's still ignoring
the contents of the <s:if>. Interstingly enough, it does exactly the same
thing if I change the test
to <s:if test="<s:property value='value[#parameter.index].type'/>!='ENUM' ">
Regards
--
View this message in context:
http://www.nabble.com/Struts-2-%3Cs%3Aif%3E-tag-tp25801138p25801415.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org