You don't have to use "value", because s:iterator puts the value on the
top of ValueStack. What about:
<s:if test="%{type=='ENUM'}">
I assume you are iterating over objects, with defined get/setType
Gregor
RogerV wrote:
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
--
Gregor Marinšek
TIS d.o.o.
Ljubljanska 9, Maribor
e-mail: gmarin...@tis.si
http://www.tis.si
GSM: (+386) 040 730 015
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org