hi,
I think u need to put ur session in init method.and
u can get it using ServletContext.
hope this will help u.

gunjan

--- De_Miguel Martin <[EMAIL PROTECTED]> wrote:
> 09/05/2000 09:56 AM
> (subscript: Martin De Miguel Lillo@TSM)
> Hi everybody
>
> I think this can solve your little problem :
>
> Get the session with the boolean parameter equals
> false, so get the session if
> exists and it doesn't create a new session if there
> isn't any session alive.
>
> if ( HttpSession session == req.getSession( false )
> )
> {
> // get Session
> }
> else
> {
>  // There isn't any session : return error page
> }
>
>
>
> 04/09/2000 10:20 PM
> Alarcon Fabio <[EMAIL PROTECTED]>
>
>
> Por favor, responda a "A mailing list for discussion
> about Sun Microsystem's
>       Java              Servlet API Technology."
> <[EMAIL PROTECTED]>
>
> Destinatarios: [EMAIL PROTECTED]
> CC:        (cci: Martin De Miguel
> Lillo/UN19159/DESARROLLO DE SISTEMAS/TSM)
> Asunto:   About session
>
>
>
> Hi firends
> I need to save some session data to use in another
> servlet, but
> when I get  the session object in the second servlet
> it creates
> another one, so I can't get the saved values from
> previous servlet.
> Can abybody suggest something please, maybe any
> configuration
> trick? I work with Apache and Jserv (JSDK2.1) in
> Linux
> Thanks in advance
> Best regards
>
> Fabio
> Fabio Alarcon Ortiz
>
> Seguro Social de Salud
> Gerencia Central de Desarrollo e Informatica
> Gerencia de Sistemas
> Phones : (51 1) 265 6000, 265 7000 Extensions 2356,
> 2357
> Mobile : (51 1) 855 1393
> ICQ    : 11002875
> email  : [EMAIL PROTECTED], [EMAIL PROTECTED]
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED]
> and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives:
>
http://archives.java.sun.com/archives/servlet-interest.html
> Resources:
>
http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help:
> http://www.lsoft.com/manuals/user/user.html
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED]
> and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives:
>
http://archives.java.sun.com/archives/servlet-interest.html
> Resources:
>
http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help:
http://www.lsoft.com/manuals/user/user.html


__________________________________________________
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to