This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
How to pass a class object from servlet to jsp page
pageContext object
Pass HTTPSession to ASP
About servlet
Passing object from JSP tp Servlet