Hi, Ken

Those errors mean that you don't have the servlet API classes in your classpath.
For JSDK2.0, these classes are in a file named jsdk.jar.  This file has to be on
your classpath.

Regards,
Noel Lecaros

ken dias wrote:

> Hi Noel,
>
> I am using Windows NT.
> I tried to complile SimpleServlet which is one of the 4 examples in the
> "examples" directory. I got 6 errors, all of which say " cannot resolve
> symbol" and point to HttpServleyt Request, HttpServlet response, throws
> ServletException, import javax.servlet etc. as the sources of error. The
> first letter of these error messages is highlighted eg. the H in HttpServer
> etc.
> I tried another example and got 9 error messages.
>
> Thanks
>
> Ken
>
> >From: "Noel E. Lecaros" <[EMAIL PROTECTED]>
> >Reply-To: "A mailing list for discussion about Sun Microsystem's Java
> >        Servlet API Technology." <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: Re: help with direct servlet reference
> >Date: Sun, 6 May 2001 12:20:02 +0800
> >
> >Hi, Ken
> >
> >What kind of errors are you seeing?  What platform are you using?
> >
> >Regards,
> >Noel Lecaros
> >
> >ken dias wrote:
> >
> > > Hi,
> > >
> > > I have JSDK2.0 and am trying to paly around and modify the example
> >servlets
> > > in Examples. I tried compiling them (before modifying them), using javac
> >and
> > > the original examples do not compile i.e. I get 6 to 9 errors. How can
> >the
> > > original examples that come with the JSDK package not compile; what is
> > > happening?
> > >
> > > Thanks for any suggestions
> > >
> > > Ken
> > >
> > > >From: Brad Cox <[EMAIL PROTECTED]>
> > > >Reply-To: "A mailing list for discussion about Sun Microsystem's Java
> > > >        Servlet API Technology." <[EMAIL PROTECTED]>
> > > >To: [EMAIL PROTECTED]
> > > >Subject: Re: help with direct servlet reference
> > > >Date: Sat, 5 May 2001 21:36:14 -0400
> > > >
> > > >My first thought would be to save a reference in a static during the
> > > >servlet init method.
> > > >
> > > >At 11:22 AM -0700 05/05/2001, Manish Shah wrote:
> > > >>hello everyone,
> > > >>I did go through the RequestDispatcher but....how do I
> > > >>get a direct reference to a servlet instance and call
> > > >>its methods directly.
> > > >>
> > > >>Using the deprecated getServlet method it was done
> > > >>this way...
> > > >>myLogonApp = (AppLogonServlet)
> > >
> > >>getServletConfig().getServletContext().getServlet("mum_cs.AppLogonServlet");
> > > >>
> > > >>Please do let me know...or maybe if anyone knows some
> > > >>piece of code which used the RequestDispatcher to do
> > > >>this..or is it that it cant be done this way anymore
> > > >>in the new API and the whole program logic itself has
> > > >>to be changed...
> > > >>I really appreciate any help...
> > > >>
> > > >>Manish
> > > >>
> > > >>ps. I am a little new to servlets....:)
> > > >>
> > > >>
> > > >>
> > > >>__________________________________________________
> > > >>Do You Yahoo!?
> > > >>Yahoo! Auctions - buy the things you want at great prices
> > > >>http://auctions.yahoo.com/
> > > >>
> > >
> > >>___________________________________________________________________________
> > > >>To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> > > >>body
> > > >>of the message "signoff SERVLET-INTEREST".
> > > >>
> > > >>Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > > >>Resources:
> >http://java.sun.com/products/servlet/external-resources.html
> > > >>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> > > >
> > > >
> > > >--
> > > >---
> > > >Brad Cox, Ph.D.; [EMAIL PROTECTED]
> > > >Phone: 703 361 4751 Cell: 703 919-9623
> > > >http://virtualschool.edu
> > > >
> > >
> > >___________________________________________________________________________
> > > >To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> >body
> > > >of the message "signoff SERVLET-INTEREST".
> > > >
> > > >Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > > >Resources: http://java.sun.com/products/servlet/external-resources.html
> > > >LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> > >
> > >
> >_________________________________________________________________________
> > > Get Your Private, Free E-mail from MSN Hotmail at
> >http://www.hotmail.com.
> > >
> > >
> >___________________________________________________________________________
> > > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> >body
> > > of the message "signoff SERVLET-INTEREST".
> > >
> > > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > > Resources: http://java.sun.com/products/servlet/external-resources.html
> > > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> >
> >___________________________________________________________________________
> >To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> >of the message "signoff SERVLET-INTEREST".
> >
> >Archives: http://archives.java.sun.com/archives/servlet-interest.html
> >Resources: http://java.sun.com/products/servlet/external-resources.html
> >LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to