That is the problem. It will work fine if he replace with getValue and putValue..
-----Original Message----- From: Sivakumar Samiappan [mailto:[EMAIL PROTECTED]] Sent: Monday, July 29, 2002 1:39 PM To: [EMAIL PROTECTED] Subject: Re: JSP problem Hi, I think the problem might be the version of JSP ur web container supports. Just replace session.setAttribute("uname","ABC") by session.setValue("uname","ABC") and try it. - Siva ----------------------------------------- Sivakumar.S Deutsche Bank AG, APHO,Singapore. IT-Ecommerce/EBPP-Coc. 64238727 (O) 62748124 (R) 90516364 (Mobile). rdgopinath@REDIFF MAIL.COM To: [EMAIL PROTECTED] Sent by: cc: JSP-INTEREST@JAVA Subject: JSP problem .SUN.COM 29/07/2002 15:30 Please respond to JSP-INTEREST hi all, pl have a look at the code given below. The Current Session id is: <%= session.getId()%> <% out.println("<font color=red>Click me</font>"); session.setAttribute("uname","ABC"); out.println(session.getAttribute("uname")); %> //End of the program If i execute the program, it displays an error message stating that E:\JavaWebServer2.0\tmpdir\default\pagecompile\jsp\_fst.java:78: Method setAttribute(java.lang.String, java.lang.String) not found in interface javax.servlet.http.HttpSession. session.setAttribute("uname","ABC"); ^ E:\JavaWebServer2.0\tmpdir\default\pagecompile\jsp\_fst.java:79: Method getAttribute(java.lang.String) not found in interface javax.servlet.http.HttpSession. out.println(session.getAttribute("uname")); ^ 2 errors what may be the reason? Thanks in advance. Regards, Gopi =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com -- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
