Wrox Home  
Search P2P Archive for: Go

  Return to Index  

j2ee thread: Servlet Compile Errors - Book: "Professional J2EE with BEA Weblogic" (Wrox Publication)


Message #1 by "Darpan Thanki" <nthada1@n...> on Thu, 18 Jan 2001 12:44:54 -0000
Thanks Chanoch and Srinivasan, for your inputs.

The "servlet.jar" ( as per Servlet 2.3 API) solved the problem.

----- Original Message -----
From: "SRINIVASAN HARIHARAN" <shari_haran@y...>
To: "Java 2 Enterprise Edition" <j2ee@p...>
Sent: Thursday, January 18, 2001 11:23 PM
Subject: [j2ee] RE: Servlet Compile Errors - Book: "Professional J2EE with
BEA Weblogic" (Wrox Publication)


> As said by chanoch the older version of servlet.jar
> uses getValue(java.lang.String) was deprecated since
> servlet version 2.2. Also check out whether you are
> having anyother servlet.jar on your classpath.
>
> Hari
>
> --- Chanoch Wiggers <ChanochW@w...> wrote:
> > you've got an old servlet.jar in your classpath, try
> > and find the newer one
> > back
> >
> > chanoch
> >
> > -----Original Message-----
> > From: Darpan Thanki [mailto:nthada1@n...]
> > Sent: 18 January 2001 12:45
> > To: Java 2 Enterprise Edition
> > Subject: [j2ee] Servlet Compile Errors - Book:
> > "Professional J2EE with
> > BEA Weblogic" (Wrox Publication)
> >
> >
> > The following code fragment (Chapter #3) from the
> > servlet
> > "OrderMaintenanceS" gives compile errors.
> >
> > Code Fragment:
> > --------------
> > Customer customer = (Customer)
> > session.getAttribute("customer");
> > session.setAttribute("message","A new order could
> > not be created");
> >
> > Compile Errors:
> > ---------------
> > VisualCafe (17:54:05): Error:
> >
> D:\VC\Projects\BEA-J2ee\src\C03\Java\jsw\C03\OrderMaintenanceS.java(85):
> > Method getAttribute(java.lang.String) not found in
> > javax.servlet.http.HttpSession
> > VisualCafe (17:54:05): Error:
> >
> D:\VC\Projects\BEA-J2ee\src\C03\Java\jsw\C03\OrderMaintenanceS.java(86):
> > Method setAttribute(java.lang.String,
> > java.lang.String) not found in
> > javax.servlet.http.HttpSession
> >
> > The same servlet compiled without errors 2 days
> > back.
> >
> > Any inputs to resolve this would be really
> > appreciated.
> >
> > Regards,
> > Darpan

  Return to Index