yes.

you can do it in the config file if it is just a static parameter or in the
Action Class.

1. <forward name="test" path="test.jsp?thistest=mytest">

2.
ActionForward forward = mapping.findForward("test");
StingBuffer path = new StringBuffer(forward.getPath();
path.append("?thistest=mytest");
return new ActionForward(path.toString());

Jimmy


-----Original Message-----
From: AshokD [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 02, 2003 6:58 AM
To: Struts Users Mailing List
Subject: Any Possibility of Passing Parameters to a ActionMapping


Hi,

I have a question regarding ActionMapping and Forwards.

I have a url which is configured in struts-config.xml as forward.

>From my Action class I can simply forward to this url, but I need to pass a
parameter to this URL.

Is it possible ?

If yes how can we do this?


Thanks in Advance,
Ashok.D



---------------------------------------------------------------------
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]

Reply via email to