Setting Values into session frm a JSP page
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Shan_Thiruvarur
Posted On:   Wednesday, February 11, 2004 12:27 AM

Can anyone tell me how to do this please ?


Apart from the form beans i need to pass few values through the session to the Action Class.


Tell me how to do this in a JSP file.


the exact syntax would be more helpful.

Re: Setting Values into session frm a JSP page

Posted By:   Srinivas_Jalagam  
Posted On:   Wednesday, February 11, 2004 05:01 AM

Hi ,



As session is implicit object of JSP , you directly use it in scriplets.



Example:

<%

session.setAttribute("key", value);

%>




hope this helps u.

Srinivas
About | Sitemap | Contact