I downloaded the jsdk 2.1, but I don't see any classes like in the 2.0. Do I use the 
servlet.jar, or
is there some other package to download?

Is there any other way for me to do the global pooling in a servlet, and communicate 
with the servlet
without using getServletContext().setAttribute(.....? We are using New Atlanta's 
Servlet Exec, which
is just great, but it won't support the jsdk 2.1 until sometime in June (which could 
turn into
anytime later in the year). They have a beta out now, but my systems group doesn't 
like the idea of
building apps around beta technology.

Brian N. Burridge
Lead Internet Analyst
Cox Target Media

Craig R. McClanahan wrote:

> Brian Burridge wrote:
>
> > I'm working on this now, but I'm not sure what that 
>"getServletContext().setAttribute("pool",
> > pool);" is. I understand basically what it does, but it isn't in the Oreilly Java 
>Servlet book,
> > and when I tried using it I got "Method setAttribute not found in interface
> > javax.ServletContext.
> >
> > Brian N. Burridge
> > Lead Internet Analyst
> > Cox Target Media
> >
>
> If you are getting this error, you're probably trying to use JSDK2.0, which did not 
>include the
> setAttribute() method.  Try it against the servlet classes in JSDK 2.1.  You'll also 
>need to run
> under the 2.1 servlet runner, or in a servlet engine environment that supports the 
>2.1 API, for
> this to execute successfully.
>
> The same issue will happen with ServletRequest.setAttribute() for beans with 
>lifespan=request.
> This was also added in 2.1.
>
> I think Jason's book was mostly based on the 2.0 API, which would explain why there 
>is no mention
> of this.
>
> Craig

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