Hans Bergsten wrote:

> Beans stored in the session scope, using <jsp:useBean> in a JSP page,
> can be accessed in a servlet through the ServletContext.getAttribute()
> method. The attribute name is the value you used for the id attribute
> in the <jsp:useBean> action.
>
>

As long as you change the first phrase to "Beans stored in the *application* scope
..."  this is accurate :-).

Beans that are stored in session scope in a JSP page are accessible to servlets
via HttpSession.getValue() for pre-2.2 servlet containers, and
HttpSession.getAttribute() for 2.2+ containers like Jakarta Tomcat.

> Hans

Craig

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