tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
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

Refer to the Javadoc for HttpSession at:


Session.setAttribute("name", someObject);
someObject = (ClassName) Session.getAttribute("name");

Hope that helps.

Raymond Pau

                    "Wiwi Wiwi"                                                          
                    <patpatbest@ho       To:       
          >           cc:     (bcc: Raymond Pau/adc)               
                                         Subject:     Session in JSP                     
                    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?


Send and receive Hotmail on your mobile device:

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message