html to servlet creating problems

I have the following html file:

C:\Program Files\Apache Software Foundation\Tomcat

5.5\webapps\Deepanjan\HTML\html1.html

I have the following xml file:

C:\Program Files\Apache Software Foundation\Tomcat

5.5\webapps\Deepanjan\WEB-INF\web.xml

I have the following servlet:

C:\Program Files\Apache Software Foundation\Tomcat

5.5\webapps\Deepanjan\Servlet1\Servlet1.class

Tomcat is up & running.

The html file shows up fine and has the following content:

<html>

<head><title>This is the title</title></head>

<body>

<form action="Servlet1" methed="get">

<input type="submit">

</form>

</body>

</html>

The xml file has the following content:

<web-app>

<display-name>counter</display-name>

<description>

Welcome to Tomcat

</description>

<servlet>

<servlet-name>Servlet1</servlet-name>

<servlet-class>Servlet1</servlet-class>

</servlet>

<servlet-mapping>

<servlet-name>Servlet1</servlet-name>

<url-pattern>/Servlet1</url-pattern>

</servlet-mapping>

</web-app>

When I click on the Submit button on the HTML file, I get:

Firefox can't find the file at /C:/Program Files/Apache Software

Foundation/Tomcat 5.5/webapps/Deepanjan/HTML/Servlet1?

What's the problem?

[1612 byte] By [deepanjan_naga] at [2007-10-2 15:42:27]
# 1

I think you have wrongly configure your servlet, so that's why your servlet could not run correctly.

1. Put all your servlet classes into the WEB-INF/classes folder.

2. In your web.xml, please check with the following example:

<?xml version="1.0"?>

<web-app>

<display-name>Your application name</display-name>

<servlet>

<servlet-name>somename</servlet-name>

<servlet-class>package.classname</servlet-class>

</servlet>

<servlet-mapping>

<servlet-name>somename</servlet-name>

<url-pattern>/somepath</url-pattern>

</servlet-mapping>

</web-app>

3. Reload your application for any updates and new deployments on servlets in Tomcat Manager.

4. Try again with http://127.0.0.1:[port]/[apppath]/somepath.

Reference: Apache Tomcat - http://tomcat.apache.org

softdev20a at 2007-7-13 15:30:27 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...