this might not be the reason. as you see in my struts-config, the forward for 
case "success" ist written as followed:

<forward name="success"         path="/pages/test/test_out.jsp"/>

this might be correct - how I guess. 

Markus-Alexander Metz Accenture 
Technologie Solutions AG 
Peter Merian-Strasse 82 
CH-4002 Basel 
tel: ++41 44 236 18 34 
[EMAIL PROTECTED] 



-----Ursprüngliche Nachricht-----
Von: Hakhnazaryan, Arus [mailto:[EMAIL PROTECTED]
Gesendet: Di 06.06.2006 11:25
An: Struts Users Mailing List
Betreff: RE: Path success does not start with a "/" character
 
look at your struts-config.xml , probably you wrote your forward path for case 
"success" without / 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 06, 2006 2:22 PM
To: user@struts.apache.org
Subject: Path success does not start with a "/" character


Hi 

I have an problem with my struts application where I don't know the reason. I 
always get the following exception:

java.lang.IllegalArgumentException: Path success does not start with a "/" 
character
        
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1078)
        
org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:263)
        
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:398)
        
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:318)
        
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:241)
        org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
        org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


The sturs-config.xml seems to be set properly:

        <action path            = "/Test"
                type            = "TestAction"
                name            = "TestBean"
                scope           = "request"
                validate        = "false"
                input           = "/pages/test/index.jsp">
                
                <forward name="success"         
path="/pages/test/test_out.jsp"/> 
        </action>

The call of the action in the JSP seems also to be correct:

<html:form action="/Test.do">
<html:submit property="action">Submit</html:submit>
</html:form>

The execute Method of the actions is:

public ActionForward execute(ActionMapping arg0, ActionForm arg1, 
HttpServletRequest arg2, HttpServletResponse arg3) throws Exception {
                
                return new ActionForward("success");
        }

Does anyone sees the problem and can help me? Thank you very much!!!!

Markus


This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in 
error, please notify the sender immediately and delete the original.  Any other 
use of the email by you is prohibited.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in 
error, please notify the sender immediately and delete the original.  Any other 
use of the email by you is prohibited.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to