Hello,
i want to iterate above an List with different Objects.
How can i use instanceof to differ the Object.
I try it this way:
<s:iterate value="result" var="object">
<s:if test="%{ object instanceof my.package.MyClassOne }">
do something with Class One
</s:if>
<s:elseif test="%{ object instanceof my.package.MyClassTwo }">
do something with Class Two
</s:elseif>
<s:else>
It does not work!
</else>
</s:iterate>
But it does not work. It runs evertime in the else branch.
Have anyone an Idee?
Best Regards
Johannes Geppert
--
View this message in context:
http://www.nabble.com/OGNL-and-instanceof-tp20850061p20850061.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]