Yes, well it's actually the session object.  The session object gives JSP
state across a user session.  In terms of session variables, it works
similar to the application, pageContext, and request objects in providing
the following methods:

setAttribute(key, value);
getAttributeNames();
getAttribute(key);
removeAttribute(key);

David Gamble
Abilene, Texas

-----Original Message-----
From: Hensley, Zachary [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 22, 2000 12:16 PM
To: [EMAIL PROTECTED]
Subject: Re: Session Variables...


in JSP there is also  variable "session" that is already declared for you by
the JSP engine.

-----Original Message-----
From: Ritesh_Srivastava [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 22, 2000 6:03 AM
To: [EMAIL PROTECTED]
Subject: Re: Session Variables...


use HttpSeesion object "session".
session = request.getSession(true);
Then session.putValue(<key>,<value>);

> ----------
> From:         Wilson Ernesto Lozano Rol�n[SMTP:[EMAIL PROTECTED]]
> Reply To:     A mailing list about Java Server Pages specification and
> reference
> Sent:         Thursday, June 22, 2000 2:05 AM
> To:   [EMAIL PROTECTED]
> Subject:      Session Variables...
>
> Hi all.
>
> Could somebody say me how to create and handling a session variable in
> JSP... thanks in advanced...
>
> Wilson Lozano
> Bucaramanga-Colombia
>
> ==========================================================================
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to