Struts-Problem with ActionForwards

Discussions

Web tier: servlets, JSP, Web frameworks: Struts-Problem with ActionForwards

  1. Struts-Problem with ActionForwards (2 messages)

    Hi,
    I was a simple struts application and deploying the same on JBoss. On running the application, it crashes on an action forward with the following Exception.

    java.lang.IllegalArgumentException: Path failure does not start with a "/" character

    My Action Mapping is as below

    <action input="Login.jsp" name="LoginForm"
    path="/loginAction"
    type="com.infosys.struts.action.LoginAction" validate="false">
    <forward name="failure" path="/error.jsp" />
    <forward name="success" path="/index.jsp" />
    </action>

    Could someone please tell me where the error is. The 3 JSPs are in the same base directory.

    TIA
    Nik
  2. Struts-Problem with ActionForwards[ Go to top ]

    Hi Nik,

    it should be 'input="/Login.jsp"' to let the action know, where to start with a relative path.

    Cheers,
    Kristian
  3. Struts-Problem with ActionForwards[ Go to top ]

    Qualify the path with '/' in Login.jsp and try


    kishore :)