First of all, are you using session scope of your bean? Or are you putting
it in the request scope?
<jsp:useBean id="bean" scope="session" class="package.BeanClassName" />
If in your controller serlvet you put the bean instance into the request
like so:
request.setAttribute("bean", beanInstance);
Then it will only go back to the JSP page as request scope..which means on
the next request to the server, the bean will be gone..its in the pool for
GC basically. Make sure you are using session scope.
As a side note, make sure if the user gets to say..an END page, that you
remove the session scoped bean from the HttpSession, so you can free up the
resources used. I have personal experience with code where it does not do
this, and we are seeing lots of memory usage problems.
> -----Original Message-----
> From: Steve Raisor [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 14, 2000 11:53 AM
> To: [EMAIL PROTECTED]
> Subject:
>
>
> I have a couple of quick questions from someone new to
> servlets and JSP's.
> I want to show a selection screen, read from a database using ODBC and
> output the results 20 at a time to a JSP. I have no problem
> using a form,
> calling a servlet that gets the result set, places it in a
> javabean and
> calls a JSP that displays the entire results to a JSP.
>
> 1. Is this the format most people use to show large
> amounts of
> data?
> 2. How do I show the results 20 at a time? If I put
> prev and next
> buttons on the final JSP page with a call to the servlet, I lose my
> selection criteria that are being passed as parameters to the servlet.
>
> Thanks for your help in advance!
> Steve Raisor
>
> ==============================================================
> =============
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets