If the servlet is not in a JAR file, you need to make sure that the
directory structure matches the package name i.e. ....
/servlets/cruncerclass/myS.class

-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Chris
Pratt
Sent: Tuesday, May 11, 1999 1:23 PM
To: [EMAIL PROTECTED]
Subject: Re: package and servlets


try http://www.server.com/servlet/myS or
http://www.server.com/servlet/cruncerclass.myS Note, the servlet is singular
in the URL, but plural in the directory structure.
    (*Chris*)

----- Original Message -----
From: Vincent Yau <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 11, 1999 11:34 AM
Subject: package and servlets


> Dear All
>
> i have a servlet that runs fine but when I include a package
> statement on top of my servlet, I will get a message in my browser
> saying servlet not found.
>
> Basically, my code looks like:
>
>    package cruncherclass ;
>
>    public class myS extends HttpServlet  {
>
>      ......
>
>    }
>
>
> http://www.server.com/servlets/myS   will yield URL not found
>
> http://www.server.com/servlets/cruncherclass.myS  will also yield URL not
> found.
>
> Can someone clue in what I did wrong?
>
> --Vincent
>
>
> _______________________________________________________________
> Get Free Email and Do More On The Web. Visit http://www.msn.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

Reply via email to