I would check your web.xml file.
The servlet element establishes a mapping between a servlet name and the
fully-qualifed name of the servlet class:
<servlet>
<servlet-name>myservlet/servlet-name>
<servlet-class>mypackage.MyServlet</servlet-class>
</servlet>
When a request is received by Tomcat it must determine which servlet should
handle it. You designate that certain paths map to a specific servlet with
the servlet-mapping element.
<servlet-mapping>
<servlet-name>myservlet</servlet-name>
<url-pattern>/servlet</url-pattern>
</servlet-mapping>
Justy
----- Original Message -----
From: "sufi malak" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 25, 2001 7:20 AM
Subject: why servlet not working from package ????
> Hi, I am trying to call a servlet from a package like this :
> http://mil2wwds10/formprocess/servlet/mypackage.MyServlet
> BUT I got ERROR :
> The page cannot be found
>
> Here is the structure of this application :
>
> tomcat\webapps\formprocess\WEB-INF\lib\form.jar
> tomcat\webapps\formprocess\WEB-INF\classes\mypackage\FormServlet.class
> tomcat\webapps\formprocess\WEB-INF\classes\mypackage\MyForm.class
> tomcat\webapps\formprocess\WEB-INF\classes\mypackage\MyServlet.class
>
>
tomcat\webapps\formprocess\WEB-INF\classes\mypackage\fieldcontroll\CharRestr
iction.class
>
>
tomcat\webapps\formprocess\WEB-INF\classes\mypackage\fieldcontroll\LoginRest
riction.class
>
>
tomcat\webapps\formprocess\WEB-INF\classes\mypackage\fieldcontroll\TextRestr
iction.class
>
> Thanks
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets