Yeah...thanks for the reply.  I found that out after I sent the email...duuuuh!

--
Antonio W. Lagnada
[EMAIL PROTECTED] - email

This email address is specifically
for JSP-Interest email list


---- Hans Bergsten <[EMAIL PROTECTED]> wrote:
> "Antonio W. Lagnada" wrote:
> >
> > Hi,
> >
> > Can anyone tell me why I get this error when accessing the setAttribute
> > method of the HttpSession interface?
> >
> > Here's the Error: ##########
> >
> > >javac Envs.java
> > Envs.java:79: cannot resolve symbol
> > symbol  : method setAttribute  (java.lang.String,java.lang.Object)
> > location: interface javax.servlet.http.HttpSession
> >         s.setAttribute("hello", (Object )"there");
> >
> > Here's the function: #######
> > void printSession(HttpSession s, HttpServletRequest r) {
> >   print(u.br + u.b("getSession()") + u.br);
> >   s.setAttribute("hello", (Object )"there");
> >   print(u.br);
> > }
>
> Most likely, you have a Servlet 2.1 (or older) JAR file in your
> classpath. The setAttribute() method was added in the Servlet 2.2 API.
> Check the CLASSPATH environment variable for your server and the
> <JDK-home>/lib/jre/ext directory for old JAR files.
>
> Hans
> --
> Hans Bergsten           [EMAIL PROTECTED]
> Gefion Software         http://www.gefionsoftware.com
>
> ===========================================================================
> 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 get your own FREE ZDNet Onebox - FREE voicemail, email, and fax,
all in one place - sign up today at http://www.zdnetonebox.com

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