thanks a lot rajesh. This is exactly what I need. Sanjana ----- Original Message ----- From: "Rajesh Kalluri" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, August 02, 2002 11:42 AM Subject: RE: iterate tag
> > http://edhill.its.uiowa.edu/display-examples-0.8/example-grouping.jsp > > > -----Original Message----- > From: SR [mailto:[EMAIL PROTECTED]] > Sent: Friday, August 02, 2002 11:32 AM > To: Struts Users Mailing List > Subject: Re: iterate tag > > > Sorry for the late reply... got pulled into a meeting.... I guess I should > explain what i am trying to do > > I have an ArrayList that I am using to populate the List page. The ArrayList > contains projects based on type for every state. I need to iterate through > the list and display it in such a way so that for every state I display the > state name once and then multiple rows for every project in that state for > eg > > state1 type1 detail1 > detail2 > type2 detail3 > state2 type1 detail1 > > to achieve this, i have another arraylist that contains all the states.I > iterate through this state arraylist and if the state name in the project > arraylist matches the state name in the state arraylist I dont display the > state name again. > > I am using the logic:iterate and logic:match tags to get this for now. What > I was wondering was, if there is an easy way to break out of the iterate if > the state doesnt match without using the match tag.... > > I guess there isnt unless I write my own tag and it seems like it is more > trouble than it is worth > > ----- Original Message ----- > From: "Rajesh Kalluri" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Friday, August 02, 2002 11:15 AM > Subject: RE: iterate tag > > > > Hi Sanjana, > > > > Does breaking out of logic:iterate tag mean you only want to print a > portion > > of what you have in your collection > > based on some condition. > > > > If that is the case after you filter out the result set as much as you can > > on the database level, you can use logic:equal or logic:match and such > tags > > to spit out only what you need inside the logic:iterate tag. > > > > HTH > > Rajesh > > > > -----Original Message----- > > From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]] > > Sent: Friday, August 02, 2002 11:01 AM > > To: 'Struts Users Mailing List' > > Subject: RE: iterate tag > > > > > > It was just a thought, the only thing that came to mind. I'm not sure > what > > you mean by filtering it out at the database level though. There are lost > > of iteration situations that are independent of database operations where > it > > could be useful, I think. > > > > ~ Keith > > http://www.buffalo.edu/~kkamholz > > > > > > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED]] > > Sent: Friday, August 02, 2002 11:04 AM > > To: [EMAIL PROTECTED] > > Subject: RE: iterate tag > > > > > > > > If you were to do that, why bother bringing the data back in the first > > place? Filter it out at the database level... > > > > Maybe Sanjana will tell us when he drops by... > > > > > > -----Original Message----- > > From: kkamholz [mailto:[EMAIL PROTECTED]] > > Sent: Friday, August 02, 2002 10:40 AM > > To: struts-user > > Subject: RE: iterate tag > > > > > > The only thing I can think of is extending/modifying the iterate tag to > > create a pretty unflexible break condition. Maybe you could add a > > 'break' > > attribute, and if the next element of the iteration is equal to the > > value > > specified in the 'break' attribute, the iteration is stopped. This > > seems > > like it could work, but might be more trouble than it's worth. > > > > ~ Keith > > http://www.buffalo.edu/~kkamholz > > > > > > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED]] > > Sent: Friday, August 02, 2002 10:09 AM > > To: [EMAIL PROTECTED] > > Subject: RE: iterate tag > > > > > > > > I dont think so, but what are you trying to do specifically... There are > > > > a few pager taglibs and one that does grouping also... > > > > > > > > -----Original Message----- > > From: sr.2002g [mailto:[EMAIL PROTECTED]] > > Sent: Friday, August 02, 2002 8:47 AM > > To: struts-user > > Subject: iterate tag > > > > > > Hello, > > > > > > Is there a way to break out of the iterate tag?? something like the > > break in the for loop? > > > > Thanks, > > Sanjana > > > > > > -- > > To unsubscribe, e-mail: > > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > > <mailto:[EMAIL PROTECTED]> > > > > -- > > To unsubscribe, e-mail: > > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > > <mailto:[EMAIL PROTECTED]> > > > > > > > > -- > > To unsubscribe, e-mail: > > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > > <mailto:[EMAIL PROTECTED]> > > > > -- > > To unsubscribe, e-mail: > > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > > <mailto:[EMAIL PROTECTED]> > > > > > > -- > > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>