"Craig R. McClanahan" wrote:

>
> IMHO, it *is* in the JSP spec -- just not in the 2.0 servlet API spec.  In the 2.1
> servlet API spec, you see all the pieces needed to implement this:
>
> *   ServletRequest.getAttribute() / setAttribute() for LIFESPAN=REQUEST

you mean LIFESPAN=PAGE right?

> *    HttpSession.getValue() / putValue() for LIFESPAN=SESSION
>     (NOTE:  you do not have to "cheat" to do this one in the 2.0 servlet API,
>     because the session capability is already there)
>
> Where they are not done yet (in either spec) is what it means when you say
> LIFESPAN=APPLICATION.  My guess is that this will mean using
> ServletContext.getAttribute() / setAttribute() in much the same manner -- you pick
> the lifespan and sharing characteristics that make sense for your beans, and both
> servlets and JSP pages have easy, natural access to them.

I agree here...

Gabriel Wong
http://www.ezwebtools.com
----------------------------

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to