File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "JSP" Watch "JSP" New topic
Author

JSP

zeus
Greenhorn

Joined: Nov 22, 2000
Posts: 6
hi all
can anyone plz tell me that whether can i pass a serialised object from one JSP to another..say i have an object in JSP1.jsp..whether can i pass the object to JSP2.jsp???its very urgent
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Originally posted by zeus:
hi all
can anyone plz tell me that whether can i pass a serialised object from one JSP to another..say i have an object in JSP1.jsp..whether can i pass the object to JSP2.jsp???its very urgent

Add the object to the session using
session.setAttribute("some_name", o);
Where o is the object and the string "some_name" is the name by which u want to ref the object.
Carl Trusiak
Sheriff

Joined: Jun 13, 2000
Posts: 3340
Please take a few minutes and review the Naming Policy. It can be benificial to you as we run contests for free books for people who post during a time period and comply with this policy.
Have a nice Day

I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP
 
Similar Threads
About servlet
pageContext object
Passing object from JSP tp Servlet
Pass HTTPSession to ASP
How to pass a class object from servlet to jsp page