JSP: Passing recordset object to another JSP

Posted on 2005-04-15
Medium Priority
Last Modified: 2010-04-01
Question by:go4java
1 Comment
LVL 19

Accepted Solution

Kuldeepchaturvedi earned 2000 total points
ID: 13790137
Well resultset is not an object but is an interface.. so passing it around is not that easy a job..

ideally whenever there are objects to be passed between jsp's there are two ways of doing it... either user session as

and then in another jsp do

ResultSet rs=(ResultSet)session.getAttribute("MyResults");

or you put them as a request Attribute
request.setAttribute("MyResults" rs);

and you can get them similarly by doing

here you shd be converting the resultset to a collection ( either Vector or a Hashtable or a collection)..
and then shd be using the this collection to pass around jsps..

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In the below post we have mentioned the best hosting type for startups. Also, check out some of the superlative web hosting companies that are proposing affordable web hosting solutions to host your startup website.
Social messanging services like WhatsApp and Facebook can help businesses in ways that many owners don't even imagine, giving new opportunities to connect with customers. Discover some of the most innovative things they can do for your company.
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question