----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
If you have a servlet with a package name, the URL you are typing would be
correct as far as I can see. As far as I know, it isn't sufficient to just
put a package name in the servlet, you also have to place that servlet in a
directory structure relating to that package name. In your example this
would be:
servlets/javaservlets/examples/Hello.class
HTH
Lee
> -----Original Message-----
> From: Boshu Liao [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, July 11, 2000 3:38 PM
> To: Java Apache Users
> Subject: Could not access servlets with a package name
>
> ----------------------------------------------------------------
> BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
> WHEN YOU POST, include all relevant version numbers, log files,
> and configuration files. Don't make us guess your problem!!!
> ----------------------------------------------------------------
>
> Hi,
>
> Version: Apache Jserv 1.1.2 in Windows 98.
> Problem: Could not access servlets with a package name.
>
> Detail Description: For example, if I have a servlet Hello.class without
> a package name in the servlets folder, I can access the servlet by
> http://mymachine/servlets/Hello.
>
> However, if a package name such as javaservlets.examples is added into
> the Hello.java and recompile and put the new Hello.class in my servlets
> folder. I can not access the servlet by http://mymachine/servlets/Hello.
> A not found message appears in my browser. According to the Jserv
> documentation, the servlet should be accessed by
> http://mymachine/servlets/javaservlets.examples.Hello. However, this
> still does not work (Not Found message appears).
>
> Anybody has the same experience? what should I do to make the servlets
> with package name to accessible in my Jserv 1.1.2? Your response is
> greatly appreciated.
>
> Boshu Liao
> GA Tech
>
>
>
>
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Search Archives:
> <http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
> Problems?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search Archives:
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]