Charles Talleyrand wrote:
>
> Hello,
> I have downloaded servlet-2_2b.zip and unpacked it into /servlets  In
> my classpath I reference /servlets and I can compile servlets.  My
> problem is that it chokes on the following.
>
> HttpSession session = request.getSession(true);
> try
> {
>  session.setAttribute("name", "value");
> }
>
> It then complains that
> symbol  : method setAttribute  (java.lang.String,java.lang.String)
> location: interface javax.servlet.http.HttpSession
>  session.setAttribute("name", "value");
>
> Any suggestions on what I'm missing?
> (Tomcat 3.2.1, W2k WS, java v 1.3.0, servlet 2.2b)

What exactly is it complaining about? That there is no setAttribute
method? And who is complaining? The server? (Since you say you can
compile, it must be the server.) This sounds like the server is using a
2.1 compliant servlet package. Check the classpath used by the server.

K Mukhar

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to