As far as I know...
get/setAttribute methods were not in jsdk 2.0 and introduced in jsdk 2.1.
Check you classpath.
try to use j2ee.jar from J2EE..
Regards,
Mohan
----- Original Message -----
From: "Amit Sethi" <amsethi@y...>
To: "Java Server" <pro_java_server@p...>
Sent: Saturday, February 17, 2001 11:31 AM
Subject: RE: QUERY--Chat
> In my coding the get/setAttribute function of session
> doesnt works.I've tried to compile it with
> Jdk1.2.1/1.3 with Jsdk2.0/2.1.
> But it gives me the error that no such method exists.
> Plz suggest what is the problem.
> Amit
> --- Richard Huss <richardh@w...> wrote:
> > Amit Sethi wrote:-
> >
> > > I've written a chat same as it is in the wrox book
> > > chapter-09.
> > > Its giving me problem usin ServletContext
> > interface as
> > > it shows not found.I replaced it with
> > ServletConfig..
> > > It did compile.
> >
> > That's curious - as I understand it, JavaWeb Server
> > 2.0 supports the Servlet
> > 2.1 specification, which was when they introduced
> > the ServletContext
> > interface. Check you haven't got an old copy of the
> > Servlet API classes in
> > your CLASSPATH when compiling.
> >
> > > All my servlets are compiled and when I run them
> > > through Javawebserver2.0,they give me the error
> > that
> > > HashMap util not found..
> >
> > That will be the JavaWeb Server using an old Java
> > environment - the
> > java.util.HashMap class, part of the Collections
> > package, became part of the
> > Java platform in JDK 1.2. I'm not sure how easy it
> > is to get JWS to use a
> > newer JDK; alternatively, you may have success with
> > downloading the
> > Collections package from
> > http://java.sun.com/products/javabeans/infobus/.
> >
> > Richard Huss
> > Technical Architect, Wrox Press Ltd
> > richardh@w...
> >
> > www.wrox.com
> > p2p.wrox.com
> > www.wroxconferences.com
> > www.asptoday.com
> >
> ---
> NEED TECHNICAL TIPS, TOOLS, AND INSIGHTS? Is FREE okay?
> Visit EarthWeb for the latest in IT Management, Software Development,
> Web Development, Networking & Communications, and Hardware & Systems.
> Click on http://www.earthweb.com for FREE articles, tutorials,
> and discussions from the experts.
$subst('Email.Unsub')
>