struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <newton.d...@yahoo.com>
Subject Re: [S2] Iterate through two lists
Date Mon, 25 Aug 2008 16:10:35 GMT
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 <milanmilanovich@yahoo.com> wrote:

> From: Milan Milanovic <milanmilanovich@yahoo.com>
> 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:
> user-unsubscribe@struts.apache.org
> > For additional commands, e-mail:
> user-help@struts.apache.org
> > 
> > 
> > 
> 
> -- 
> 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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail:
> user-help@struts.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message