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
-
Struts-Problem with ActionForwards (2 messages)
- Posted by: Nik Roy
- Posted on: December 07 2004 05:56 EST
Threaded Messages (2)
- Struts-Problem with ActionForwards by Kristian Senkler on December 08 2004 02:26 EST
- Struts-Problem with ActionForwards by krishna kishore on December 16 2004 01:21 EST
-
Struts-Problem with ActionForwards[ Go to top ]
- Posted by: Kristian Senkler
- Posted on: December 08 2004 02:26 EST
- in response to Nik Roy
Hi Nik,
it should be 'input="/Login.jsp"' to let the action know, where to start with a relative path.
Cheers,
Kristian -
Struts-Problem with ActionForwards[ Go to top ]
- Posted by: krishna kishore
- Posted on: December 16 2004 01:21 EST
- in response to Nik Roy
Qualify the path with '/' in Login.jsp and try
kishore :)