Hello All,

I am using Tomcat 4.1. I just started working in it,
 
so this asking may be childish, if so, pls don't
mistake me.

Here is my webapp structure:

1. C:\Program Files\Apache Group\Tomcat 4.1\webapps\testapp\classes 
                       -----here i have my servlet classes
2. C:\Program Files\Apache Group\Tomcat 4.1\webapps\testapp\jsp
                        -----here i have a sample.htmfile
3. C:\Program Files\Apache Group\Tomcat 4.1\webapps\testapp\WEB-INF 
                       -----here is the web.xml resides

my web.xml entry is like this:

<!DOCTYPE web-app PUBLIC "-//Sun Microsystems,
Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd";>
<web-app>
        <servlet>
          <servlet-name>TestServlet</servlet-name>
          <servlet-class>TestServlet</servlet-class>
        </servlet>
  
        <servlet-mapping>
          <servlet-name>TestServlet</servlet-name>
         
<url-pattern>/TestServlet</url-pattern>
        </servlet-mapping>
</web-app>

------------------
the sample.htm has the following entries:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>

<body>
<p><font color="#000099">Hello, Welcome!</font> </p>
<form
action="http:\\localhost:8080\testapp\TestServlet" method="post"
name="form1" target="_self">
  <input type="submit" name="Submit" value="Click Me">
</form>
<p>&nbsp; </p>
</body>
</html>

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

Here is what I done:
1. I started the Tomcat server
2. opened the IE browser and "http://localhost:8080/testapp/jsp/sample.htm";
3. clicked the button which gives the error "HTTP Status 500 -
TestServlet is not found"

Please tell me what is the problem?


-- 
ilu,
subi

Reply via email to