I have following form properties : 

articleType(String)-- defines the various types of
articles like science, sports etc.

articleList(ArrayList) -- arraylist of a particular
list like science, sports etc.

I want to do the following :

<nested:iterate property="articleList">

//if articleType=="sports" print sports heading label
//if articleType=="science" do something print science
heading label

// iterate over 
// the collection here

</nested:iterate>

How do I achieve printing the different messages based
on the articleType??

Thanks.

--- Jim Barrows <[EMAIL PROTECTED]> wrote:

> 
> 
> > -----Original Message-----
> > From: struts lover [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, September 09, 2004 3:05 PM
> > To: Struts Users Mailing List
> > Subject: RE: go one level up
> > 
> > 
> > I am using nested iterate. Now I want to check the
> > value of a bean(other than the part of the
> collection)
> > inside the iteration.
> > I can't use <c:if> because the way my logic is
> > designed, wont allow to use <c:if> tag.
> 
> Sounds like you need to change your logic.  What
> does the code look like?  Something doesn't seem
> right about your problem.
> 
> 
> > Thanks,
> > 
> > --- Jim Barrows <[EMAIL PROTECTED]> wrote:
> > 
> > > 
> > > 
> > > > -----Original Message-----
> > > > From: struts lover
> [mailto:[EMAIL PROTECTED]
> > > > Sent: Thursday, September 09, 2004 1:47 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: go one level up
> > > > 
> > > > 
> > > > Hi Everyone,
> > > > I am using struts nested iterate tag. Is there
> any
> > > way
> > > > to go one level up inside the iterate.
> > > 
> > > Huh?
> > > 
> > > 
> > > > 
> > > > Any help would be appreciated.
> > > > Thanks
> > > > 
> > > > 
> > > >         
> > > >                 
> > > > __________________________________
> > > > Do you Yahoo!?
> > > > New and Improved Yahoo! Mail - 100MB free
> storage!
> > > > http://promotions.yahoo.com/new_mail 
> > > > 
> > > >
> > >
> >
>
---------------------------------------------------------------------
> > > > 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]
> > > 
> > > 
> > 
> > 
> > 
> >             
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! Mail Address AutoComplete - You start. We
> finish.
> > http://promotions.yahoo.com/new_mail 
> > 
> >
>
---------------------------------------------------------------------
> > 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]
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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

Reply via email to