JSP: Passing recordset object to another JSP

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

    Accepted Solution

    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..

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    After several days of searching and hunting for limited documentation, I wanted to share this guide to hopefully save someone the hassle of trying to figure this out on their own. I have tested this on Xendesktop 7.1 and PS 4.5 running simultaneousā€¦
    DECT technology has become a popular standard for wireless voice communication. DECT devices are not likely to be affected by other electronic devices and signals because they operate in a separate frequency-band.
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the eā€¦
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    779 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

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now