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 I#m sure that it must be there, because it's in the
java.lang.Integer class and I thought java.lang.* must'nt be imported,
or?
Nevertheless I imported it but withthe same ending.
Any thoughts why I can't use this method parseInt?
Peter

[EMAIL PROTECTED] wrote:
> 
> 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;
> while(book.next())  {
> 
> i++
> 
> %>
> <B><%=book.getEditor%></B><BR>
> <%=book.getTitle%>
> <%=book.getAuthor%>
> 
> HREF="moreinfos.jsp?index=i">more information</A>
> }
> %>
> than retrieve this bean in your second jsp and retrieve your book object
> throught the index in your collection attribute
> 
> <jsp:useBean id="book" scope="session">
> <%
> i = request.getParameter("index");
> book.getElementAt(i);
> %>
> .......
> 
> Patrick PIERRA

Reply via email to