Hi, I'm learning JSP using Jbuilder3.5 Enterprise. when I run my sample codes from the localhost builded in Jbuilder, it come out following error: Method setAttribute(java.lang.String, java.lang.String) not found in interface javax.servlet.http.HttpSession. session.setAttribute( "theName", name ); is there anything wrong with the code ? or some limitation of Jbuilder3.5 ? Pls help...Thanks a lot!
Bosun Bello
Ranch Hand
Joined: Nov 06, 2000
Posts: 1506
posted
0
SetAttribute is only available with version 2.2 of servelts and above. You must be using a version less than 2.2. You can use the putValue() method instead.
Bosun
Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley