Here it is EXACT code: <s:if test="#session.order != null"> <- HERE IT WORKS (order is recognized in session)!! <td> <s:text name="order.price" > <s:param name="value" value="#session.order.orderList[#rowstatus.index].price"/> <- HERE IT DOESN'T WORK - null value! </s:text> </td> </s:if>
-- Regards, Milan newton.dave wrote: > > Then something further down the object chain is broken, but you insist on > not sharing any more relevant information, so you're on your own. > > If the values in question exist the syntax works, AFAICT, since I have the > exact same syntax and I get data back. > > Dave > > > --- On Mon, 8/25/08, Milan Milanovic <[EMAIL PROTECTED]> wrote: > >> From: Milan Milanovic <[EMAIL PROTECTED]> >> Subject: Re: [S2] Iterate through two lists >> To: user@struts.apache.org >> Date: Monday, August 25, 2008, 11:30 AM >> I tried this syntax when my "someObject" is >> located in action class: >> >> <s:param >> value="someObject.fruits2[#rowstatus.index].name"/>, >> >> I also put this variable into sesson, and treid like this: >> >> <s:param >> value="#session.someObject.fruits2[#rowstatus.index].name"/> >> >> and it doesn't work, but it is wierd because few lines >> above, this works: >> >> <s:if test="#session.someObject != null"> >> ... >> </s:if> >> >> So, I supose that this value attribute of s:param >> doesn't work well or synax >> is no good. >> >> -- >> Milan >> >> >> newton.dave wrote: >> > >> > --- On Sat, 8/23/08, Milan Milanovic wrote: >> >> O.K. I'll try to find it. But I just think >> that this synax is no good: >> >> >> >> <s:param >> value="someObject.fruits2[#rowstatus.index].name"/> >> > >> > You may *think* that, but the syntax is fine, and I >> have working code that >> > uses it, written while working on your problem. >> > >> > 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-tp19052842p19146071.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-tp19052842p19147115.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]