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);
}
--
Antonio W. Lagnada
[EMAIL PROTECTED] - email
This email address is specifically
for JSP-Interest email list
___________________________________________________________________
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