This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
If you are forwarding to a JSP, any object you want can be attached to the request with setAttribute. However, you better be very sure that the ResultSet gets closed properly, no matter what happens. Bill
Instead of setting objects in the session scope, use request scope. Placing objects in session scope is mainly unfavored because the object will stick around until the session times out. With request scope this is not the case. Here is a FAQ that covers this question and provides a code example. http://www.jspinsider.com/faq/12.view Jayson Falkner firstname.lastname@example.org
Jayson Falkner<br />email@example.com<br />Author of <a href="http://www.jspbook.com" target="_blank" rel="nofollow">Servlets and JavaServer Pages; the J2EE Web Tier</a>