Please look at this problem and give me solution

hi all,
iam getting this problem when i run th server
javax.servlet.UnavailableException: Missing configuration resource for path /WEB-INF/struts-config.xml
so, i am unable to run jsp, servlets using struts in tomcat.
pls solve this problem
--> i have a servlet file namd Form.java
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
public class Form extends Action {
public ActionForward execute(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException {
ServletOutputStream sos=response.getOutputStream();
String fname=request.getParameter("firstname");
String lname=request.getParameter("lastname");
String dob=request.getParameter("dob");
String uid=request.getParameter("uid");
String pwd=request.getParameter("pwd");
sos.println("First Name = " + fname +" "+lname+"<br>");
sos.println("DOB = " + dob);
sos.println("Username = " + uid);
sos.println("password = " + pwd);
String target = new String("success");
return (mapping.findForward(target));
-->jsp file named form.jsp
<html>
<body>
exe on httpservlet
<form action="http://localhost:8080/satish/Form">
enter firstname <input type= "text" name="firstname"><br>
enter lastname <input type="text" name="lastname"><br>
enter DateofBirth <input type="text" name="dob"><br>
enter userid <input type="text" name="uid"><br>
enter password <input type="text" name="pwd"><br>
<input type="submit" value="register">
</form>
</body>
</html>
and i have web.xml in F:\projects\tomcat\webapps\satish\WEB-INF
with below contents
<?xml version="1.0" encoding="ISO-8859-1"?>
<!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>
<display-name>struts example</display-name>
<description>
Mycode
</description>
<!--GENERATED_JSPS-->
<!-- JSPC servlet mappings start -->
<servlet>
<servlet-name>action</servlet-name>
<servlet-class> org.apache.struts.action.ActionServlet </servlet-class>
<init-parameter>
<name>application</name>
<value>ApplicationResources</value>
</init-parameter>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>action </servlet-name>
<url-pattern>/satish/Form</url-pattern>
</servlet-mapping>
<!-- JSPC servlet mappings end -->
</web-app>
and struts-config.xml file in F:\projects\tomcat\webapps\satish
with below contents
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd" >
<struts-config>
<action-mappings>
<action path="/form" type="Form" input="/form.jsp" >
</action>
</action-mappings>
</struts-config>
and run the tomcat server
typed http://localhost/satish/form.jsp
given the input and clicked submit button and i got
this
HTTP Status 404 - /satish/Form
type Status report
message /satish/Form
description The requested resource (/satish/Form) is not available.
Apache Tomcat/5.0.5

double post:
http://forum.java.sun.com/thread.jspa?threadID=684573&tstart=0

Similar Messages

Maybe you are looking for

  • BPEL Workflow email not stored in database!

    Hi, I'm using SOA Suite 10.1.3.4. I have a worklist application where notifications are sent to Assignees, Approvers when the action is Assign or Approve. The mails are delivered as expected. But there is not trace of emails sent. I checked WFNOTIFIC

  • Howto disable TopLink localized labels and messages?

    Hi, my windows regional settings are configured with Portuguese (Brazilian) as language and Brazil as location (since I am a Brazilian Portuguese speaking person who lives in Brazil). But the TopLink translations are POOR (almost stupid), it seems th

  • Title safe problem on 4:3 tv

    Hi all. Matt from Australia here. my question is this. When I simulate my 16:9 project in DVDSP, with it set to 4:3 letterbox, it all looks good - all the text up the top of the screen is visible and is letterboxing as expected. When I play the burnt

  • Regarding Doc, for a New Implementation

    Hello, Will you  pl, help me in getting complete documentation (Std / Template)for all stages of ASAP methodology, for a new module. If you provide at least URL, it will be of great help.

  • Launchpad in Mountain Lion

    II'm using OS X 10.8 Mountain Lion and I have a proplem with the Launchpad. When I install new app, the app's icon appear in Lauchpad at first page instead of 2nd page same OS X 10.7 Lion. I like it in the 2nd page so I can manager my installed app e