• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Method setAttribute() not found

 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
Ranch Hand
Posts: 1514
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Sylvia Wang
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
it works after I upgrade to Jbuilder4.0
Thanks.
 
reply
    Bookmark Topic Watch Topic
  • New Topic