• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

setAttribute method not found  RSS feed

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 1512
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!