This week's book giveaways are in the Refactoring and Agile forums. We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line! See this thread and this one for details.
Hi everybody I am getting a problem while using session object in a jsp page. I am binding an object with current session using session.setAttribute(String str, Object obj); method to use this object in other pages , but it is showing an page translation error setAttribute(String str, Object obj) not found in javax.servlet.HttpSession interface. Could any body solve this problem .I am using Javawebserver 2.0.
Thanks in advance. santromeer
posted 14 years ago
It's because JWS is not using the latest version of the servlet API. setAttribute is new with version 2.2. You can use putValue() instead, if you can not get a hold of the latest servlet API.
Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley