Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

struts help

Status
Not open for further replies.

AlienFetus

Programmer
Nov 14, 2001
2
CA
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=&quot;/RessurectionAction&quot; type=&quot;RessurectionAction&quot;>
<forward name=&quot;success&quot; path=&quot;/View2.jsp&quot;>
</action>

my servlet which compiles fine:
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
return (mapping.findForward(&quot;success&quot;));
}
}

and my jsp index.jsp which works:
<%@ page contentType=&quot;text/html;charset=UTF-8&quot; language=&quot;java&quot; %>

<html>
<head>
<title>Welcome to Heaven</title>
</head>
<body bgcolor=&quot;white&quot;>

<form action=&quot;RessurectionAction.do&quot; method=post>
To enter Heaven, please enter your name, age, and e-mail. <br>
<table border=&quot;0&quot;>

<tr>
<th align=&quot;right&quot;>
Name:
</th>
<td align=&quot;left&quot;>
<input type=text property=&quot;userName&quot; size=&quot;25&quot; maxlength=&quot;25&quot;>
</td>
</tr>

<tr>
<th align=&quot;right&quot;>
Age:
</th>
<td align=&quot;left&quot;>
<input type=text property=&quot;age&quot; size=&quot;3&quot; maxlength=&quot;3&quot;>
</td>
</tr>

<tr>
<th align=&quot;right&quot;>
Email Address:
</th>
<td align=&quot;left&quot;>
<input type=text property=&quot;email&quot; size=&quot;25&quot; maxlength=&quot;25&quot;>
</td>
</tr>
<tr><td> </td></tr>
<tr>
<td align=&quot;right&quot;>
<input type=submit value=&quot;Ressurect Me!&quot;>
</td>
</tr>

</table>
</form>
</body>
</html>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top