Re: iterating over collection

2005-11-25 Thread Per Jørgen Walstrøm
this should do the trick: this, of course, assumes that your "secondaryBean" has methods like getName(), getPrice() etc. cheers, pj Malhotra, Amitkumar \(Exchange\) Thu, 24 Nov 2005 21:23:34 -0800 Hello All, Am stuck up with a simple problem and could not find solution to the same

iterating over collection

2005-11-24 Thread Malhotra, Amitkumar \(Exchange\)
Hello All, Am stuck up with a simple problem and could not find solution to the same over the net my DAO sets a list in the session , this list contains java bean classes, the action class forwards the flow to a jsp page. I want to iterate over the collection and read the java beans stor

RE: Identifying the 'clicked' line when iterating over collection

2004-09-01 Thread andy wix
Hi, I am trying to follow the advice given yesterday but am now baffled by the basic jstl stuff. I have cut it down to basics and still get no output actually written to the page. I've tried all variations on the theme (have the arraylist in the session, use c:outs in the "" tags etc). The code

Re: Identifying the 'clicked' line when iterating over collection

2004-08-31 Thread Rick Reumann
Rick Reumann wrote: To do what you want above would take a slightly different approach. Say you had your ArrayList of Contacts in Session scope and after the user clicked on a link you wanted to edit one of those objects. In this case you wouldn't use the "ID" to look him up you'd have to use th

RE: Iterating over collection ...

2004-08-31 Thread eid4k
> > >> -Original Message- >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >> Sent: Tuesday, August 31, 2004 9:48 AM >> To: [EMAIL PROTECTED] >> Subject: Iterating over collection ... >> >> >> Hello there >> >> I am having

RE: Iterating over collection ...

2004-08-31 Thread eid4k
r in order to iterate through the inner >list for each object: > > >     >     >     >         >     > > >Daniel. > >> -Original Message- >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >> Sent: 31 August 2004 17:48 >> To: [E

Re: Identifying the 'clicked' line when iterating over collection

2004-08-31 Thread Rick Reumann
andy wix wrote: session). To get the ID would be something, but it would save me needing an action class at all if I could get the contact object representing the 'clicked' row into the session or request scope. To do what you want above would take a slightly different approach. Say you had you

RE: Iterating over collection ...

2004-08-31 Thread Daniel Perry
You need to nest another iterate'er in order to iterate through the inner list for each object:                 Daniel. > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: 31 August 2004 17:48 > To: [EMAIL PROTECTED] > Sub

Re: Iterating over collection ...

2004-08-31 Thread Erik Weber
Don't you want a nested iteration of the second ArrayList, similar to the iteration you already have? Erik [EMAIL PROTECTED] wrote: Hello there I am having some issue getting the correctly output while iterating over my collection I'm doing the following: I'm iterating over an processList(ArrayLi

RE: Iterating over collection ...

2004-08-31 Thread Jim Barrows
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 31, 2004 9:48 AM > To: [EMAIL PROTECTED] > Subject: Iterating over collection ... > > > Hello there > > I am having some issue getting the correctly out

Iterating over collection ...

2004-08-31 Thread eid4k
Hello there I am having some issue getting the correctly output while iterating over my collection I'm doing the following: I'm iterating over an processList(ArrayList) which contains 4 objects of type ProcessBO. ProcessBO has 3 attributes; int ID String name ArrayList tasklist The tasklist

RE: Identifying the 'clicked' line when iterating over collection

2004-08-31 Thread Daniel Perry
ugust 2004 17:19 > To: [EMAIL PROTECTED] > Subject: Re: Identifying the 'clicked' line when iterating over > collection > > > Hi, > > I have tried most of the code in the replies and, alas, fear my > brain is too > small to get any working. > I am persevering with

RE: Identifying the 'clicked' line when iterating over collection

2004-08-31 Thread Jim Barrows
> -Original Message- > From: andy wix [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 31, 2004 9:19 AM > To: [EMAIL PROTECTED] > Subject: Re: Identifying the 'clicked' line when iterating over > collection > > > Hi, > > I have tried most

Re: Identifying the 'clicked' line when iterating over collection

2004-08-31 Thread andy wix
Hi, I have tried most of the code in the replies and, alas, fear my brain is too small to get any working. I am persevering with Rick Reumann's method (because I liked the Struttin' with Struts stuff!) but I don't get a session parameter in my next page after the link is followed (I have changed

Re: Identifying the 'clicked' line when iterating over collection

2004-08-30 Thread Rick Reumann
[EMAIL PROTECTED] wrote: It sounds like you want to attach parameters to your link? How bout something like this: ... ... The above is nice, or I just use the JSTL url tag so for a row you might have (if using one dispatch Action called contactAction ) ... EDIT DELETE or if JSP 2.0 ED

RE: Identifying the 'clicked' line when iterating over collection

2004-08-30 Thread James Childers
y. -= J > -Original Message- > From: andy wix [mailto:[EMAIL PROTECTED] > Sent: Monday, August 30, 2004 3:04 PM > To: [EMAIL PROTECTED] > Subject: Identifying the 'clicked' line when iterating over collection > > > Hi, > In my jsp page I have an ArrayList of contact

Re: Identifying the 'clicked' line when iterating over collection

2004-08-30 Thread benanderson
It sounds like you want to attach parameters to your link? How bout something like this: ... ... Quoting andy wix <[EMAIL PROTECTED]>: > Hi, > In my jsp page I have an ArrayList of contact objects and I use this to > build an html table; one contact per row. At the end of each table row I >

RE: Identifying the 'clicked' line when iterating over collection

2004-08-30 Thread Jim Barrows
> -Original Message- > From: andy wix [mailto:[EMAIL PROTECTED] > Sent: Monday, August 30, 2004 1:04 PM > To: [EMAIL PROTECTED] > Subject: Identifying the 'clicked' line when iterating over collection > > > Hi, > In my jsp page I have an ArrayList

Identifying the 'clicked' line when iterating over collection

2004-08-30 Thread andy wix
Hi, In my jsp page I have an ArrayList of contact objects and I use this to build an html table; one contact per row. At the end of each table row I have edit and delete links such that the form looks roughly like: Name Number Fred1234edit delete Barney