You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by pa...@firstenergycorp.com on 2005/10/20 17:14:55 UTC
Looking for instructions on migrating from Struts 1.0.2 to 1.2.7
Hello,
Can anyone point me to some documentation that helps you migrate Struts
apps from version 1.0.2 to 1.2.7?
Thanks in advance for any help.
-----------------------------------------
The information contained in this message is intended only for the
personal and confidential use of the recipient(s) named above. If the
reader of this message is not the intended recipient or an agent
responsible for delivering it to the intended recipient, you are hereby
notified that you have received this document in error and that any
review, dissemination, distribution, or copying of this message is
strictly prohibited. If you have received this communication in error,
please notify us immediately, and delete the original message.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Question about ActionForward.setRedirect method
Posted by "Frank W. Zammetti" <fz...@omnytex.com>.
I have to make some educated guesses here, because I don't know the full
Struts lineage at that early stage (didn't start using it until 1.1)...
The message your seeing is because the forward configs are frozen once
they are read in. Recall that, like Actions, there is one instance for
any given forward config and this is shared by all requests. If you could
alter them in one request, you could adversely affect another.
My *guess* is that the configuration freezing was added after 1.0.2. I
don't know that for sure though. In any case, it is certainly the case in
1.2.7.
The way to deal with this is to return an ActionRedirect from your Action
instead. One of the constructors for that class takes in a ForwardConfig,
so what you can do is:
ForwardConfig f = new ActionRedirect(mapping.findForward("whatever"));
f.setRedirect(true);
return f;
Alternatively, you could just have new mappings in struts-config that are
defined as redirects, so you could just remove that setRedirect() call
entirely.
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: fzammetti@hotmail.com
On Mon, October 24, 2005 9:41 am, pantichd@firstenergycorp.com said:
> Hello,
>
> I'm converting my struts apps from version 1.0.2 to 1.2.7.
>
> In my 1.0.2 app I can call ActionForward.setRedirect method and pass it
> "true" with no problem. When running with 1.2.7 it generates the following
> error.
>
> Error [javax.servlet.ServletException: Configuration is frozen], with
> root cause [java.lang.IllegalStateException: Configuration is frozen].
>
>
> Can someone please explain why?
>
> Thanks!
>
>
> David
>
>
> -----------------------------------------
> The information contained in this message is intended only for the
> personal and confidential use of the recipient(s) named above. If the
> reader of this message is not the intended recipient or an agent
> responsible for delivering it to the intended recipient, you are hereby
> notified that you have received this document in error and that any
> review, dissemination, distribution, or copying of this message is
> strictly prohibited. If you have received this communication in error,
> please notify us immediately, and delete the original message.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Question about ActionForward.setRedirect method
Posted by pa...@firstenergycorp.com.
Hello,
I'm converting my struts apps from version 1.0.2 to 1.2.7.
In my 1.0.2 app I can call ActionForward.setRedirect method and pass it
"true" with no problem. When running with 1.2.7 it generates the following
error.
Error [javax.servlet.ServletException: Configuration is frozen], with
root cause [java.lang.IllegalStateException: Configuration is frozen].
Can someone please explain why?
Thanks!
David
-----------------------------------------
The information contained in this message is intended only for the
personal and confidential use of the recipient(s) named above. If the
reader of this message is not the intended recipient or an agent
responsible for delivering it to the intended recipient, you are hereby
notified that you have received this document in error and that any
review, dissemination, distribution, or copying of this message is
strictly prohibited. If you have received this communication in error,
please notify us immediately, and delete the original message.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Looking for instructions on migrating from Struts 1.0.2 to 1.2.7
Posted by Wendy Smoak <ja...@wendysmoak.com>.
From: <pa...@firstenergycorp.com>
> Can anyone point me to some documentation that helps you migrate Struts
> apps from version 1.0.2 to 1.2.7?
Unfortunately, I don't think anyone has contributed anything on upgrading
from Struts 1.0 yet:
http://wiki.apache.org/struts/StrutsUpgrade
Your best bet is to review the release notes for each version in between the
two you're working with. Start here and work backwards using the links in
the first line of each page:
http://struts.apache.org/struts-core/userGuide/release-notes.html
A useful exercise might be to take an example app from 1.0.2 and convert it
to 1.2.7. Then post your notes on the Wiki. :)
--
Wendy Smoak
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org