Im not sure that you can use it (instanceof). Why dont you do that in the action class, creating a new collection!
On 31/3/2010 06:49, RogerV wrote:
Hi I'm iterating over a List<Element> with<s:iterator status="status" value="structure.elements"> and I want to test that the element returned is an instanceof a specific type of element, so I've tried with <s:if test="%{<s:property/> instanceof StringElement}"> <s:if test="%{structure.elements[#status.index] instanceof StringElement}"> <s:if test="structure.elements[%{#status.index}] instanceof StringElement}"> none of which work. Could some kind soul show me the correct syntax for this? Regards