You can try something like:

ActionForward basis = mapping.findForward("success");
ActionForward success = new ActionForward();
success.setPath(basis.getPath());
// also copy other relevant properties from "basis"
success.setRedirect(true);
return success;

hth,
Hubert

--- Lucas Halim <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I was upgrading Struts 1.0 to 1.1 and encounter a Configuration is Frozen
> illegal state exception
> and I found out that the redirection code causes this exception.
> 
>       ActionForward success = mapping.findForward("success");
>       success.setRedirect(true);
> 
> I aware that we can set an attribute of redirect="true" in the forward tag in
> config file
> (struts-config.xml) but what happen if we need to dynamically en/disable the
> redirection?
> 
> Thanks in advance.
> 
> Lucas
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

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

Reply via email to