Rajarshi Chaudhuri wrote:

> Hi,
>         There is no method called getAttribute in
> javax.servlet.http.HttpSession - you should use PageContext or
> ServletContext for setting and getting attributes.
>

On the contrary, there is a method HttpSession.getAttribute() if you are using a
servlet container compatible with the 2.2 specification.  If you're using an older
one, the corresponding call is HttpSession.getValue().  In 2.2 the names were
changed for consistency with the attribute methods of a request and a context.

Craig McClanahan

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