Deepa Khetan wrote:
Hi,
I am trying to add a parameter at runtime in ActionMapping of my Action
Class. I am using mapping.setParameter() for this. It gives an
IllegalStateException saying Configuration file is frozen. Is there a way in
which i can add a parameter at runtime??
Regards,
Deepa
Hi Deepa,
you have to construct a new ActionForward object and then return it.
here is an example:
ActionForward fwd =
mapping.findForward(Constants.ACTIONFORWARD_SUCCESS);
String path = fwd.getPath();
path += "&myparam=";
path += someparamvalue;
return new ActionForward(path);
regards
borislav
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]