AlienFetus
Programmer
Hi there, i'm having trouble getting struts to access my servlet. I'm running tomcat 4.0.4 on a Solaris 8 SPARC. I don't know if this is more of a Java/JSP question but i'll post it in there as well. When i click submit on the index.jsp page it gives me a 503 service is unavailable. Please help!
the three files of concern are my
struts-config.xml which has this one map:
<action path="/RessurectionAction" type="RessurectionAction">
<forward name="success" path="/View2.jsp">
</action>
my servlet which compiles fine:
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
return (mapping.findForward("success");
}
}
and my jsp index.jsp which works:
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<title>Welcome to Heaven</title>
</head>
<body bgcolor="white">
<form action="RessurectionAction.do" method=post>
To enter Heaven, please enter your name, age, and e-mail. <br>
<table border="0">
<tr>
<th align="right">
Name:
</th>
<td align="left">
<input type=text property="userName" size="25" maxlength="25">
</td>
</tr>
<tr>
<th align="right">
Age:
</th>
<td align="left">
<input type=text property="age" size="3" maxlength="3">
</td>
</tr>
<tr>
<th align="right">
Email Address:
</th>
<td align="left">
<input type=text property="email" size="25" maxlength="25">
</td>
</tr>
<tr><td> </td></tr>
<tr>
<td align="right">
<input type=submit value="Ressurect Me!">
</td>
</tr>
</table>
</form>
</body>
</html>
the three files of concern are my
struts-config.xml which has this one map:
<action path="/RessurectionAction" type="RessurectionAction">
<forward name="success" path="/View2.jsp">
</action>
my servlet which compiles fine:
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
return (mapping.findForward("success");
}
}
and my jsp index.jsp which works:
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<title>Welcome to Heaven</title>
</head>
<body bgcolor="white">
<form action="RessurectionAction.do" method=post>
To enter Heaven, please enter your name, age, and e-mail. <br>
<table border="0">
<tr>
<th align="right">
Name:
</th>
<td align="left">
<input type=text property="userName" size="25" maxlength="25">
</td>
</tr>
<tr>
<th align="right">
Age:
</th>
<td align="left">
<input type=text property="age" size="3" maxlength="3">
</td>
</tr>
<tr>
<th align="right">
Email Address:
</th>
<td align="left">
<input type=text property="email" size="25" maxlength="25">
</td>
</tr>
<tr><td> </td></tr>
<tr>
<td align="right">
<input type=submit value="Ressurect Me!">
</td>
</tr>
</table>
</form>
</body>
</html>