pass object from servlet to jsp
1 posts in topic
Flat View  Flat View

Posted By:   tyris_d
Posted On:   Tuesday, April 24, 2001 06:06 AM

hi all,
i've an object (like this for example :

public class ResponseObj {
public String string1;
public String string2;
public String string3;

how can i send this object to the jsp ? i do have a doGet method that send some parameters to the servlet and then i need to send the ResponseObj to the jsp.


Re: pass object from servlet to jsp

Posted By:   Thiru_Kumar  
Posted On:   Wednesday, May 2, 2001 02:30 PM

Use HttpSession object to store the object ( either by session.setAttribute() or by session.putValue()) then forward the request to the jsp using RequestDispatcher.
About | Sitemap | Contact