struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian DeLuca" <bdelu...@iwon.com>
Subject RE: Newbie and use of <logic:iterate>
Date Sat, 14 Sep 2002 00:22:01 GMT




The problem you are having is that sid is not known by id allFoos.

It is know however as aFoo.sid --> nested bean working.

Below I have a suggestion for change.

I have not tested it so may need some tweeking.

regards
brian

 --- On Fri 09/13, Steve  wrote:
From: Steve [mailto: sms687@neca.com]
To: struts-user@jakarta.apache.org
Date: Fri, 13 Sep 2002 16:54:34 -0400
Subject: Newbie and use of 

> Not sure this posted the first time. Sorry in advance if it did.
> 
> 
> I have checked the archives and I can still not seem to find a clear way
> of how to accomplish the following. I have a collection of beans added
> to the request:
> 
> request.setAttribute("allFoo", foos);
> 
> The beans have a property called 'someIds'( this is a List of id's) ,
> along with other properties like name, desc, etc. In my .jsp I simply
> need to iterate over the collection of beans displaying the properties
> and where applicable iterate over 'someIds'. I have something similar to
> this currently:
> 
> 
>     
>     
>     

This block should look like this
>       
>         
>     

   
         --> no need for property if not a bean.
   


> 
> 
> This does not give me the desired result though. Can someone shed some
> light on what it is I am doing incorrectly? It seems like a fairly
> common thing that I want to do. 
> 
> Thanks.
> 
> steve
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 
> 

------------------------------------------------
Changed your e-mail?  Keep your contacts!  Use this free e-mail change of address service
from Return Path.  Register now!

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


Mime
View raw message