hi :)

As far as i can tell you are missing a servlet-mapping in your web.xml. A servlet uri should also be mapped to a specific servlet.

Try including:

<servlet-mapping>
   <servlet-name>addDataServlet</servlet>
   <url-pattern>/com/scheduler/addDataServlet</url-pattern>
</servlet-mapping>

in your web.xml file.

If this doesn't work, please state your tomcat version.

hth :)

-- drm

anunay ashish wrote:

Hi,
My servlet is placed at:
C:\Program Files\Apache Group\Tomcat
4.1\webapps\Tracking_system\WEB-INF\classes\com\scheduler
with the name addDataServlet

 My web.xml is as follows:
 <web-app>
  <servlet>
      <servlet-name>
       addDataServlet
      </servlet-name>
      <servlet-class>
       com.scheduler.addDataServlet
      </servlet-class>
     </servlet>
  <welcome-file-list>
         <welcome-file>pageFormat.jsp</welcome-file>
     </welcome-file-list>
 <web-app>

 I am calling it from my JSP page as:
 <form action="servlet/com/scheduler/addDataServlet" method="Post">
    <input type="text" name="newPageFormat">
    <input type="Submit" name="submitButton" value="Submit">
   </form>

 But on clicking the submit button it takes me to:
 HTTP Status 404 - /com/scheduler/addDataServlet

 ---------------------------------------------------------------------------
-

type Status report

message /com/scheduler/addDataServlet

 description The requested resource (/com/scheduler/addDataServlet) is not
 available.


--------------------------------------------------------------------------- -

Apache Tomcat/4.1.27

The text in the file localhost_log.2003-10-06.txt in logs folder
corresponding to the above error message is:
2003-10-06 12:36:19 WebappLoader[/Tracking_system]: Deploy class files
/WEB-INF/classes to C:\Program Files\Apache Group\Tomcat
4.1\webapps\Tracking_system\WEB-INF\classes
2003-10-06 12:36:19 StandardManager[/Tracking_system]: Seeding random number
generator class java.security.SecureRandom

Please suggest me the remedy for this.
Regards,
Anunay Ashish.


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to