Re: off-topic: Result Set as attribute

2001-09-26 Thread Lester June Cabrera
Hi Peter, Yes, your code is using two attribute names for every record. And the last attribute values that get saved are the those of the last record of your resultset. I would would recommend that you use hidden fields in your form with the id for each record. Lester At 11:21 AM 9/26/01

Re: off-topic: Result Set as attribute

2001-09-26 Thread Jim Cheesman
At 11:21 AM 26/09/01, you wrote: Hello all, this is a bit off Topic, but it also belong to Tomcat: I have 2 jsp-pages: In the first a result set is executed. Each record in the row has a button ( more information) which leeds to the second page. On this page I will give more information to the

Re: off-topic: Result Set as attribute

2001-09-26 Thread Patrick . Pierra
you replace the autor and the titre attribute in your session along your while . i thing its better to use a jsp:useBean id=book scope=session tag in your first jsp. Set a collection atrribute of book and pass an index to the second jsp page : % book.set(param1,); i=0;

Re: off-topic: Result Set as attribute

2001-09-26 Thread P.Miller
Hi Patrick, first thanks for your suggestion. I try to start with setting and passing an index i f type integer. When I want to get the parameter on the second page with # int i; i = parseInt(request.getParameter(index); I get the message: method or class parseInt(java.lang.String) not found but

Re: off-topic: Result Set as attribute

2001-09-26 Thread P.Miller
Michael, thanks for your answer; You're right with Integer.parseInt() I realy read 2 good books of the Java-language, but I'm relatively knew to programming with classes so I think it's normal that I stuck sometimes on 'easy' things (I hope it's normal!). Nevertheless, now it works thanks