"session" is an implicit JSP object. It can be referenced in all JSPs that
are included in the session. Those include all JSPs where the page directive
attribute "session" is either omitted(thereby defaulting to "true") or
explicitly set to "true".


-----Original Message-----
From: TODD HARNEY [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 01, 2000 9:36 AM
To: [EMAIL PROTECTED]
Subject: Re: Session ID HELP!!


You can explicitly get the session object by calling
request.getSession(true) from your JSP code, but I believe there is a page
directive that you can set in your JSP page to have that code explicitly
generated for you so that you can simply call the implicit session object. I
also believe that the default is to have sessions turned on meaning that the
session object by default is implicitly defined and available for use.

<%@ page session="true" %>

will work if that is not the default, but I believe it is so you should have
to type nothing...just use your session like...

<% session.putValue("userName",userName); %>

>>> [EMAIL PROTECTED] 8/1/00 12:15 >>>
Dear developers,

i have a question about session scope
say, if i have the first page for user to log in their
name ..and after surfing to the other pages to buy the
stuffs which have the scope of session
so how can i make the user's name bound with the
session object  (i use the session scope with useBean
tag).  However, in the first page, i don't use the
session Bean,

do i have to explicitly write the code to create the
session object??
can anyone guide me to any site with the session
tutorial please?
thank you
Chad


____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

===========================================================================
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