Thanks for all your replies. I tried but am still getting the same 3 errors.
I tried putting "tomcat_home\com\oreilly\servlet" in my classpath but it still does not work on Guestbook of ch.9 of Jason's book. I put Guestbook in tomcat_home\webapps\ROOT\web-inf\classes.
I get 3 error messages:
Errors 1 & 2 "cannot resolve symbol". This comes as 2 errors with:
symbol: class CacheHttpServlet, location: package servlet and import: com.oreilly.servlet.CacheHttpServlet
Error 3 method:getServletContext()
Thanks again for your help,
Ken
>From: Gardner Monte <[EMAIL PROTECTED]>
>Reply-To: "A mailing list for discussion about Sun Microsystem's Java Servlet API Technology." <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: Packages
>Date: Fri, 30 Nov 2001 14:23:20 -0700
>
>If that is the case, then the package can be found at
>http://www.servlets.com/cos/index.html
>
>along with links to documentation and such.
>
>
>--Monte Glenn Gardner
>
>
>On Fri, 30 Nov 2001, Mark Galbreath wrote:
>
> > I don't think he knows how to get the oreilly package.
> >
> > Mark
> >
> >
> > ----- Original Message -----
> > From: "Gardner Monte" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, November 29, 2001 7:06 PM
> > Subject: Re: Packages
> >
> >
> > > The javax.com and javax.comm.http are packages of Source files that
> > > have been compiled and placed in a directory called the CLASSPATH.
> > > That directory is where the Java Virtual Machine looks when it
> > > tries to 'import' something. You have to find out where your
> > > classpath is, and then put the Oreilly stuff in that directory.
> > >
> > >
> > > --Monte Glenn Gardner
> > >
> > >
> > > On Thu, 29 Nov 2001, ken dias wrote:
> > >
> > > > I am trying to get the concept of packages. The concept of packages is
> > not
> > > > fully explained in the book Java Servlet Programming by Jason H. I tried
> > the
> > > > ex. Guestbook in Chapter 9 but for some reason, it does not complile as
> > it
> > > > does not import com.oreilly.CacheHttpServlet. However it has no problem
> > > > importing javax.com and javax.comm.http. Now all 3 are packages so why
> > does
> > > > it not import com.oreilly.CacheHttpServlet?
> > > >
> > > > Thanks
> > > >
> > > > Ken
> > > >
> > > > _________________________________________________________________
> > > > Get your FREE download of MSN Explorer at
> > http://explorer.msn.com/intl.asp
> > > >
> > > >
> > ___________________________________________________________________________
> > > > 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
> > >
> > >
> >
> > ___________________________________________________________________________
> > 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
>
___________________________________________________________________________
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