Hi check out
http://www.jspinsider.com/reference/jsp/jspsession.html
I document the session object in full glory with code examples.
and the quick answer is:
<%
String ls_validate = "This is our original session";
session.setAttribute("Validate", ls_validate);
%>
Casey Kochmer
[EMAIL PROTECTED]
www.jspinsider.com
>From: TomyWang <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
> reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: Session Problems
>Date: Mon, 4 Sep 2000 14:43:37 +0800
>
>i wonder how you can put a object in the sesson use setAttribute?
>i know that method just add attribute in the servlet context.
>when i put a object in the session,i use session.putValue(),and i pull the
>value out,i use session.getValue(),so try these two method
>:))
>
>===========================================================================
>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
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Share information about yourself, create your own public profile at
http://profiles.msn.com.
===========================================================================
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