Home Tutorialhelp Comment I get the folowing error on execution of the Sessi

 
 

Comment

gayatri
I get the folowing error on execution of the Sessi,
December 5, 2006 at 12:37 PM

I get the folowing error on execution of the Session management code given in this tutorial. Pl let me know the reason and remedy.

Line # 55 Error Method setAttribute(java.lang.String, java.lang.String) not found in interface javax.servlet.http.HttpSession. session.setAttribute("username",username);
at oracle.jsp.app.JspJavacCompiler.compile(JspJavacCompiler.java)
at oracle.jsp.app.JspAppLoader.reloadPage(JspAppLoader.java)
at oracle.jsp.app.JspAppLoader.loadPage(JspAppLoader.java)
at oracle.jsp.app.JspAppLoader.getPage(JspAppLoader.java)
at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java)
at oracle.jsp.JspServlet.doDispatch(JspServlet.java)
at oracle.jsp.JspServlet.internalService(JspServlet.java)
at oracle.jsp.JspServlet.service(JspServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
at org.apache.jserv.JServConnection.run(JServConnection.java:294)
at java.lang.Thread.run(Thread.java:484)

View All Comments
Advertisement
Related Tutorial and Articles
Advertisements Advertisements
 

 

 

DMCA.com