You must also change your code to include the line "package am;" as the
first non-comment line in the file.
(*Chris*)
----- Original Message -----
From: akas majhi <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 15, 1999 4:17 AM
Subject: Re: Can I put a file to the directory under directory servlets
> Hi ,
> i am facing A similar problem and have done exactly in the way u have
> instructed. Still it does not work.
> Servlet name : Hello.class
> if i put it in server_root/servlets and access with
> http://localhost:8080/servlet/Hello it works
> but if i move the class file to server_root/servlet/am folder and
> access
> it like http://localhost:8080/servlet/am.Hello it does not work.
> Any answer.
> Thanking u in advance
> Akas
>
>
> > >----------
> > >From: Micael K�llman[SMTP:[EMAIL PROTECTED]]
> > >Sent: Wednesday, September 08, 1999 12:22 AM
> > >To: [EMAIL PROTECTED]
> > >Subject: SV: Can I put a file to the directory under directory
> > >servlets
> > >
> > >(snip)
> > >> I put my .class files in a directory under directory servlets, I try
to
> > >> access them, I get error message is "The page cannot be found". if I
> > move
> > >> the files to servlets directory, I can access them.
> > >(snip)
> > >> Then I creat another directory fsLeads under servlets, and move
> > >> LoginHandler
> > >> to fsLeads. I access this file in html page(path is
> > >> ../geccd/servlet/fsLeads/LoginHandler). it fails. There is one error
> > >> message
> > >> "The page cannot be found".
> > >>
> > >> Do you know why?
> > >>
> > >>
> > >If I'm not mistaken here, the servlet engine thinks that directories in
> > >the
> > >Servlets-directory are packages, so you need to write
> > >fsLeads.LoginHandler
> > >instead of fsLeads/LoginHandler when you access the servlet.
> > >
> > >Hope this helps
> > >/Micael
> > >
> >
>________________________________________________________________________
> > >___
> > >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