Results 1 to 2 of 2

Thread: struts errors

  1. #1
    Join Date
    Jul 2010
    Posts
    38
    Rep Power
    0

    Default struts errors

    HTTP Status 503 - Servlet action is currently unavailable

    description: The requested service (Servlet action is currently unavailable) is not currently available.


    This is my struts-config.xml file
    <?xml version="1.0" encoding="ISO-8859-1" ?>

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

    <struts-config>

    <data-sources>
    <data-source
    type="org.apache.commons.dbcp.BasicDataSource">
    <set-property property="driverClassName"
    value="oracle.jdbc.driver.OracleDriver" />
    <set-property property="url"
    value="jdbc:oracle:thin:@localhost:1521:oracle" />
    <set-property property="username"
    value="system"/>
    <set-property property="password"
    value="dharmit"/>
    </data-source>
    </data-sources>

    <form-beans>
    <form-bean name="employeeForm"
    type="com.wrox.EmployeeForm" />
    </form-beans>

    <global-forwards>
    <forward name="employeelist" path="/EmployeeList"/>
    </global-forwards>

    <action-mappings>

    <action path="/EmployeeList"
    type="com.wrox.EmployeeListAction"
    scope="request" >
    <forward name="success" path="/employeelist.jsp"/>
    </action>

    <action path="/Add"
    type="com.wrox.AddEmployeeAction"
    name="employeeForm"
    scope="request"
    input="/addemployee.jsp"
    validate="true" >
    <forward name="success" path="/EmployeeList.do"/>
    <forward name="error" path="/addemployee.jsp"/>
    </action>

    <action path="/Edit"
    type="com.wrox.GetEmployeeAction"
    name="employeeForm"
    scope="request"
    validate="false" >
    <forward name="success" path="/editemployee.jsp''/>
    <forward name="error" path="/EmployeeList.do"/>
    </action>

    <action path="/EditEmployee"
    type="com.wrox.EditEmployeeAction"
    name="employeeForm"
    scope="request"
    input="/editemployee.jsp"
    validate="true" >
    <forward name="success" path="/EmployeeList.do"/>
    <forward name="error" path="/editemployee.jsp"/>
    </action>

    <action path="/Delete"
    type="com.wrox.DeleteEmployeeAction"
    scope="request"
    validate="false" >
    <forward name="success" path="/EmployeeList.do"/>
    </action>

    </action-mappings>

    </struts-config>


    how can i solve this type of errors
    so give me a some suggestion....

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,120
    Rep Power
    20

    Default

    Assuming the above is a copy and paste of your actual config, you have two single quotes after one of your editemployee.jsp bits, rather than a double quote.

    This error is usually caused by something incorrect in your config, so should this not be the case then all you can do is go through the config file and make sure it's correct.

Similar Threads

  1. decorator.jsp problem building Struts Menu in JSP when Struts action is used
    By dkirvan in forum JavaServer Pages (JSP) and JSTL
    Replies: 3
    Last Post: 04-29-2010, 06:33 AM
  2. Getting errors
    By Abbinormal in forum New To Java
    Replies: 5
    Last Post: 01-15-2010, 07:01 AM
  3. errors
    By ravikumar in forum Threads and Synchronization
    Replies: 3
    Last Post: 09-29-2009, 05:15 AM
  4. Errors.
    By rocky in forum New To Java
    Replies: 4
    Last Post: 04-09-2009, 09:05 AM
  5. Replies: 3
    Last Post: 03-08-2009, 02:51 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •