hi all,

i was messing about with the session object methods, trying to get the hang of
it all.  however, i get the errors below.  am i forgetting to import some
package? getValue() and setValue() work just fine, so i see no reason why these
others don't.

Error during compilation :

/jsp/JavaWebServer2.0/tmpdir/default/pagecompile/jsp/_examples/_jsp/_samples/_te
stcells/_fullreport.java:73: Method getAttribute(java.lang.String) not found in
interface javax.servlet.http.HttpSession.
                        Object lstest=session.getAttribute("mclitest");
                                                          ^
/jsp/JavaWebServer2.0/tmpdir/default/pagecompile/jsp/_examples/_jsp/_samples/_te
stcells/_fullreport.java:76: Method getAttributeNames() not found in interface
javax.servlet.http.HttpSession.
                        Enumeration enum=session.getAttributeNames();
                                                                  ^
/jsp/JavaWebServer2.0/tmpdir/default/pagecompile/jsp/_examples/_jsp/_samples/_te
stcells/_fullreport.java:96: Method getID() not found in interface
javax.servlet.http.HttpSession.
                out.print(session.getID());
                                       ^
3 errors

thanks for any feedback,
maurice.

===========================================================================
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
  • ... Maurice Coyle - Sun ireland - Software Products and Platforms - Internationalization Engineer
    • ... Kachana Ung

Reply via email to