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