I have a JSP app whose call sequence goes like this:
1) Form calls search_results.jsp with form values.
2) search_results.jsp uses <jsp:useBean> to declare a Vector object and
loads the vector with a list of objects and then does a <jsp:forward> to
product_list.jsp.
3) product_list uses <jsp:useBean> to declare the same Vector object and
displays some of the objects in the Vector.
The question is, I would like to have product_list.jsp call itself to
display the next page of objects in the Vector. When I send a request to
the product_list.jsp a second time, the Vector declared in product_list.jsp
is new and empty. I think this is because it is a new request and the
Vector bean has only request scope.
If I try to use session scope I get problems with multiple browser windows
being open to the product_list.jsp page. Since the bean is shared, the two
browser windows will update the same bean which is not acceptable.
The ideal would be for me to be able to pass the existing request's bean to
the new request. Is this possible?
I am using Tomcat version 3.2? (how can I determine Tomcat's version?) and
Apache version 1.3.12 on Redhat Linux version 6.2. My jsp source files can
be provided if need be.
Thank you,
Todd Chaffee