Do something like this:

// Get Browser Session
HttpSession browserSession = request.getSession(false);
browserSession.putValue("myVariable", myVariable);

retrieve the data like this:

MyVariableObject myVariable =
(MyVariableObject)browserSession.getValue("myVariable");

HTH,

Dan

> ----------
> From:         Ornelas, Gabriel (CAP,
> CORP)[SMTP:[EMAIL PROTECTED]]
> Reply To:     Ornelas, Gabriel (CAP, CORP)
> Sent:         Monday, November 15, 1999 12:24 PM
> To:   [EMAIL PROTECTED]
> Subject:      Session variables ???
> Importance:   Low
>
> Does anybody know how can I set a variable for a user session ???
>
> Thanks for taking your time.
> Later... Gabe !!!
>
> ==========================================================================
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> FAQs on JSP can be found at:
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to