• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP

 
zeus
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic