Tell me is this syntax good now for representing action class attribute called someObject ?:
<s:iterator value="fruits1" status="rowstatus"> <s:text name="names" > <s:push value="someObject.fruits2[#rowstatus.index]"> <s:param name="value" value="name"/> </s:push> </s:text> </s:iterator> -- Milan newton.dave wrote: > > --- On Thu, 8/21/08, Milan Milanovic wrote: >> I removed # from my expression and I still get: (500 >> Internal Server Error). > > Not sure what else to tell you since you don't post any of the related > code. I can't reproduce the issue, nor can Stephan. If you want more > assistance you'll have to be more helpful. > > It's almost always quicker to include all the relevant code and configs up > front; it can save a lot of back-and-forth. > > Dave > >> newton.dave wrote: >> > >> > --- On Thu, 8/21/08, Milan Milanovic wrote: >> >> it is an object that contains list of Fruits, >> nothing else. >> >> Yes, it is located in action class and have >> get/set methods. >> >> newton.dave wrote: >> >>> What is "someObject"? Have you >> created it as >> >>> a named stack context variable? >> > >> > The answer to my question is actually "no", >> then. >> > >> > You shouldn't use the "#" prefix >> character to access action properties, >> > only stack *context* properties (like #request, values >> created using >> > <s:set...> and similar, and so on). >> > >> > Do you still get the 500 using the correct OGNL >> expression? >> > >> > Dave >> > >> > >> > >> --------------------------------------------------------------------- >> > To unsubscribe, e-mail: >> [EMAIL PROTECTED] >> > For additional commands, e-mail: >> [EMAIL PROTECTED] >> > >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19092268.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] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19092596.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]