Results 1 to 5 of 5
  1. #1
    mbalas2 is offline Member
    Join Date
    Mar 2009
    Posts
    3
    Rep Power
    0

    Default Http Status 404 - LoginServlet.do

    Am getting Http Status 404 - LoginServlet.do
    description: The requested resource not available

    From struts-config.xml:

    <action path="/LoginServlet"
    type="Loginaction"
    name="LoginActionForm">
    <forward name="success" path ="/success.jsp"/>
    </action>


    From login.jsp:

    <form action="/LoginServlet.do" method="post">

    Will appreciate quick help!!

  2. #2
    serjant's Avatar
    serjant is offline Senior Member
    Join Date
    Jun 2008
    Location
    Ukraine,Zaporozhye
    Posts
    487
    Rep Power
    6

    Default

    Is the LoginServlet confgiured in web.xml?

  3. #3
    serjant's Avatar
    serjant is offline Senior Member
    Join Date
    Jun 2008
    Location
    Ukraine,Zaporozhye
    Posts
    487
    Rep Power
    6

    Default

    Post here your web.xml file

  4. #4
    mbalas2 is offline Member
    Join Date
    Mar 2009
    Posts
    3
    Rep Power
    0

    Default

    Web.xml:

    <display-name>
    Strutslearn</display-name>
    <welcome-file-list>
    <welcome-file>index.html</welcome-file>
    <welcome-file>index.htm</welcome-file>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>default.html</welcome-file>
    <welcome-file>default.htm</welcome-file>
    <welcome-file>default.jsp</welcome-file>
    </welcome-file-list>

    <servlet>
    <servlet-name>action</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    <init-param>
    <param-name>config</param-name>
    <param-value>/WEB-INF/struts-config.xml</param-value>
    </init-param>
    <init-param>
    <param-name>validate</param-name>
    <param-value>true</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
    </servlet>

    <servlet-mapping>
    <servlet-name>action</servlet-name>
    <url-pattern>*.do</url-pattern>
    </servlet-mapping>

    </web-app>

  5. #5
    mbalas2 is offline Member
    Join Date
    Mar 2009
    Posts
    3
    Rep Power
    0

    Default

    <struts-config>

    <!-- ========== Form Bean Definitions ================================== -->
    <form-beans>
    <!-- Simple ActionForm Bean -->
    <form-bean name="LoginActionForm"
    type="com.can.appcheck.formbeans.LoginActionForm"/>

    </form-beans>

    <!-- ========= Global Exception Definitions ============================ -->
    <global-exceptions>
    </global-exceptions>

    <!-- ========== Global Forward Definitions ============================= -->

    <global-forwards>
    <forward name="success" path="/success.jsp"/>
    <forward name="tryAgain" path="/tryAgain.jsp"/>
    </global-forwards>

    <!-- ========== Action Mapping Definitions ============================= -->
    <action-mappings>

    <!-- Simple ActionForm Example ===================================== -->

    <action path="/LoginServlet"
    type="com.can.appcheck.formactions.LoginAction"
    name="LoginActionForm"
    scope="request">
    <forward name="success" path="/success.jsp"/>
    <forward name="tryAgain" path="/tryAgain.jsp"/>
    </action>


    </action-mappings>

    </struts-config>

Similar Threads

  1. Replies: 7
    Last Post: 11-11-2009, 08:29 PM
  2. problem with HTTP Status 404
    By orkun in forum JavaServer Faces (JSF)
    Replies: 1
    Last Post: 02-05-2009, 09:28 PM
  3. Imports broken in JSP; HTTP Status 500-
    By Aerinai in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 06-13-2008, 10:27 PM
  4. HTTP Status 404 - Servlet action is not available---Error
    By sireesha in forum Web Frameworks
    Replies: 0
    Last Post: 04-18-2008, 07:25 PM
  5. HTTP Status 404 - Servlet action is not available
    By onceuponatime in forum Java Servlet
    Replies: 1
    Last Post: 12-11-2007, 04:29 PM

Posting Permissions

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