bingo, that was it. Thank you!

On 4/13/05, Abdullah Jibaly <[EMAIL PROTECTED]> wrote:
> try:
> 
> <c:forEach items="${sessionScope['userPortfolios']}" var="p">
>        <c:out value="${p.portfolioName}" />
> </c:forEach>
> 
> -Abdullah
> 
> -----Original Message-----
> From: David Johnson [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 13, 2005 2:46 PM
> To: Struts Users Mailing List
> Subject: Re: forEach> for an object that extends ArrayList in
> Application **and** Session
> 
> Oh, and to answer the other question, I stored the
> PortfolioBeanCollection on the session under the key
> 
> "userPortfolios" like this:
> 
> PortfolioBeanCollection myPortfolios= loadUserPortfolios(userID);
> session.setAttribute("userPortfolios",myPortfolios);
> 
> On 4/13/05, David Johnson <[EMAIL PROTECTED]> wrote:
> > that makes sense, but the individual portfolios (the members of the
> > PortfolioBeanCollection) dont really have a name, I just looped
> > through my result set doing
> >
> > PortfolioBeanCollection PBC=new PortfolioBeanCollection ();
> > while (result.hasnext){
> > pbc.add (new PortfolioBean(resultSet.getString("namefield")));
> > }
> >
> > so I really just used the PortfolioBeanCollection as if it were a
> > garden variety ArrayList.... does your comment still apply?
> >
> > On 4/13/05, Dave Newton <[EMAIL PROTECTED]> wrote:
> > > David Johnson wrote:
> > >
> > > ><c:forEach var="portfolio" items="${userPortfolios}">
> > > >     <c:out value="${portfolioName}"/><br>
> > > ></c:forEach>
> > > >
> > > >it outputs the proper number of <br> tags, but is not preperly
> > > >displaying the correct 
> > > >PortfolioBeanCollection.PortfolioBean.portfolioName
> > > >
> > > >
> > > You're not specifying the bean from which to get the property.
> > >
> > > <c:out value="${portfolion.portfolioName}"/>
> > >
> > > Dave
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> > --
> > -Dave
> > [EMAIL PROTECTED]
> >
> 
> --
> -Dave
> [EMAIL PROTECTED]
> 
> ---------------------------------------------------------------------
> 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]
> 
> 


-- 
-Dave
[EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to