login.html

<html>
<head>
<form action="login.do">
UserId:<input type=text name="uid"/>
Password<input type=text name="pass"/>
<input type=submit value="Login" />
</form>
</head>
</html>
------------------------------------
web.xml

<web-app>
<servlet>
<servlet-name>loginServlet</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>2</param-value>
</init-param>
<init-param>
<param-name>detail</param-name>
<param-value>2</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>


<servlet-mapping>
<servlet-name>loginServlet</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
</web-app>
-----------------------------------------
struts-config.xml

<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
"http://struts.apache.org/dtds/struts-config_1_3.dtd">

<struts-config>
<action-mapping>
<action path="/login" type="com.struts.LoginAction" >
<forward name="success" path="/welcome.jsp"/>
</action>
</action-mapping>
</struts-config>



i am getting 404 error code in tomcat..plz solve my problem.