hi guys
I have just started out with struts so bear this naive question
I haev configured all the xml files in WEB-INF directory to appropriatly
forqard requests to the necessary action classes.. However whenever i am
hitting the submit button on myform the server throws a 404 error
Not Found
The requested URL /contest/jsp/logonForm.do was not found on this
server.
The test jsp page is something like this
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-contest.tld" prefix="struts" %>
<html>
<head>
<title><struts:message key="index.title"/></title>
</head>
<body>
<struts:errors/>
<img src="/contest/grfx/18rav.jpg" alt="some pic">
<br>
<struts:form action="logonForm.do" method="post"
name="contestDetails"
type="com.indiatoday.contests.wacky.ContestDetails">
<struts:hidden
property="captionTheme"
value="ravina"/>
<struts:text
maxlength="16"
property="captionField"/>
<br>
<struts:submit/>
<struts:reset/>
</struts:form>
</body>
</html>
The servlet mapping in web.xml reads
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
The action mapping reads
<action-mappings>
<action path="/logonForm"
type="com.indiatoday.contests.wacky.LogonForm"
name="contestDetails"
input="/jsp/index.jsp"
<forward name="success"
path="/logon.jsp"/>
</action>
</action-mappings>
Can any one please tell me why is it not finding the requied page..
Thanx for ur time and patience
Anand