This helped me a lot, thank you! =) Now the list is iterated and i get the output as a ressource. The solution was:
<tiles:importAttribute name="myListAttribute"/> <s:iterator value="%{#attr.myListAttribute}"> <s:a href="#link"><s:text name="%{#attr.value}"/></s:a> </s:iterator> Greets Ray Jeromy Evans - Blue Sky Minds wrote: > > PhoenixelRay wrote: >> I tryed it like this <s:iterator value="%{#attr.myListAttribute}"> with >> the >> same Problem. >> >> > > <tiles:importAttribute> places the object into page scope if not > specified otherwise. > > This means in OGNL it's only available via #attr. > > First, confirm you can access the attribute from JSP EL and that's the > object is type that can be iterated over. > > Then <s:iterator value="#attr.myListAttribute"> will definitely iterate > over it. > > Within your sample code you referenced #item but that doesn't exist. > When inside the iteration, the top of the stack is the item being > iterated over, so > <s:property value="link"/> will get the property name "link" of the > current item, and so on. > > Hope that helps, > Jeromy Evans > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Struts2-OGNL-Problem-tp20498124p20557573.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]