Thanks Hubert.

Anybody knows why is it frozen at the first place? Is that just another mod in Struts 
1.1?

Lucas

> -----Original Message-----
> From: Hubert Rabago [mailto:[EMAIL PROTECTED]
> Sent: Thursday, January 08, 2004 11:05 AM
> To: Struts Users Mailing List
> Subject: Re: configuration is frozen
> 
> 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]



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

Reply via email to