| Message view | « Date » · « Thread » |
|---|---|
| Top | « Date » · « Thread » |
| From | Raymond...@adc.com.sg |
| Subject | Re: Session in JSP |
| Date | Fri, 24 May 2002 07:35:41 GMT |
HI Wiwi,
You don't have to explicitly create a session object in JSP.
A new session will be started for every new connection.
You will be able to access the session object using the implicit Session
Object.
Refer to the Javadoc for HttpSession at:
http://java.sun.com/products/servlet/2.2/javadoc/index.html
Example:
Session.setAttribute("name", someObject);
someObject = (ClassName) Session.getAttribute("name");
Hope that helps.
Raymond Pau
"Wiwi Wiwi"
<patpatbest@ho To: tomcat-user@jakarta.apache.org
tmail.com> cc: (bcc: Raymond Pau/adc)
Subject: Session in JSP
05/24/2002
03:11 PM
Please respond
to "Tomcat
Users List"
Hi all. Can anyone tell me how to create a session in JSP instead of
servlet, and read the value of the attribute that stored in the session
using JSP?
Thanks.
wiwi
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com
--
To unsubscribe, e-mail: <
mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <
mailto:tomcat-user-help@jakarta.apache.org>
--
To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>
| |
| Mime |
|
| View raw message | |