If you do not want to use the session object to store the date, a solution could be
to get the data in A.jsp and then set them in the src as request param  to get them
in b.jsp : b.jsp?param=val....
    Or you could also, group all yout data in a bean and only save the bean in the
session to be able to get these data from any jsp files and once you get your bean
you can destroy it from session object if you want to be sure to not use these data
several times.

Regards
Veronique

Lakshmi Anantharaman a écrit :

> Hi all,
>     I have a jsp question.
>
>    I have a jsp program  A.jsp which actually defines a frame.  I have two
> jsp pages b.jsp and c.jsp in the frame set.  I have a servlet which fetches
> some data from the database and calls A.jsp with the data. I used request
> dispatcher to do this and I also added the data using request.setattribute.
>
> I am also able to see the data I fetched in A.JSP, but  the data should
> actually be displayed in frame 1 which is b.jsp which has the logic to
> retrieve this data.  It fails with a null pointer exception.
>
>    In other words, do you know how to save some data in one jsp page and use
> it in another. I know this can be done using sessions.  But I will be
> fetching a huge chunk of data and I am not sure If i should use session
> variables to save this.  Please advise.
>
> Thanks and regards
> Ganesh
>
> ===========================================================================
> 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

Reply via email to