You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Pierre Thibaudeau <pi...@gmail.com> on 2008/08/01 05:49:25 UTC
[S2] problem still with "actionRedirect" and "redirect" results (Struts2.1.2)
I have read a number of reports spanning the last year and describing the
problem of wanting to attach parameters to an actionRedirect, as in the
following example:
<result name="input" type="redirectAction">
<param name="actionName">myAction</param>
<param name="id">23</param>
</result>
This issue has been raised a number of times, I believe, but I am not
certain what the official current status is nowadays. I seem to gather that
some people think it has been resolved prior to 2.1.2, yet I keep getting
the same error messages as described in earlier posts about it (OGNL
complaining that the "id" parameter cannot be applied to
ServletActionRedirectResult, or something of the kind).
The JIRA tracker lists the following issues:
https://issues.apache.org/struts/browse/WW-1714
as fixed in version 2.0.8, but it certainly doesn't work in 2.1.2.
(To be honest, my moving from Struts1 to Struts2 has been a very positive
experience---apart for OGNL's idiosyncracies, which are very trying. But
this one problematic issue about redirectAction is a real shock and
disappointment. Assuming that I am right that there is still a bug there
(and I hope I am wrong!), I would personally vote for giving that issue the
highest level of priority.)
Re: [S2] problem still with "actionRedirect" and "redirect" results (Struts2.1.2)
Posted by Pierre Thibaudeau <pi...@gmail.com>.
Thank you Andreas and Brad. I too shall be impatiently looking forward to
2.1.3!
And I'd rather not backtrack to 2.0.11 as I want Ajax/dojo as a plugin and
not as a theme.
2008/8/1 Andreas Mähler <an...@stud.uni-karlsruhe.de>
> I am also desperately waiting for version 2.1.3 since it seems to be fixed
> there[1]. I cannot downgrade to 2.0.x, since I am using the "no .action
> extension" feature of 2.1.x
>
> [1] https://issues.apache.org/struts/browse/WW-2676
>
>
Re: [S2] problem still with "actionRedirect" and "redirect" results
(Struts2.1.2)
Posted by Andreas Mähler <an...@stud.uni-karlsruhe.de>.
Hello Daniel,
in Struts 2.1.2, you can add an empty string to the comma sperated list
that goes to the "struts.action.extension" parameter (e.g. "action,,"
allows you to use the normal ".action" extension and the empty one) . If
you would like to switch off the extension entirely (like I do), you
need to set it to ",," because "" doesn't work.
I'm using the struts.xml: <constant name="struts.action.extension"
value=",,"/>
Discussion about the topic on struts-dev:
http://www.mail-archive.com/dev@struts.apache.org/msg29348.html
Feature in the Apache tracker:
https://issues.apache.org/struts/browse/WW-2163
HTH.
Auf Wiedersehen!
~Andreas
P.S: CC to struts-user; just in case other ppl are interested as well.
Daniel Ruan schrieb:
> Hello Andreas,
>
> I was searching the Struts2 mailing list and came across this post
from you. I was intrigued by what you said about using the "no .action
extension" feature of 2.1.x. I have been trying to find a way to avoid
the action extension, but I cannot find any reference online about what
you alluded to. Could you please shed more light? I just upgraded to
2.1.2.
>
> Thanks a lot.
>
> Daniel
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: [S2] problem still with "actionRedirect" and "redirect" results
(Struts2.1.2)
Posted by Andreas Mähler <an...@stud.uni-karlsruhe.de>.
Hello Pierre,
I am also desperately waiting for version 2.1.3 since it seems to be
fixed there[1]. I cannot downgrade to 2.0.x, since I am using the "no
.action extension" feature of 2.1.x
CU
~Andreas
[1] https://issues.apache.org/struts/browse/WW-2676
Pierre Thibaudeau schrieb:
> The JIRA tracker lists the following issues:
> https://issues.apache.org/struts/browse/WW-1714
> as fixed in version 2.0.8, but it certainly doesn't work in 2.1.2.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: [S2] problem still with "actionRedirect" and "redirect" results (Struts2.1.2)
Posted by Brad A Cupit <br...@lsu.edu>.
Pierre Thibaudeau [mailto:pierre.thibaudeau@gmail.com] wrote:
> The JIRA tracker lists the following issues:
> https://issues.apache.org/struts/browse/WW-1714
> as fixed in version 2.0.8, but it certainly doesn't work in 2.1.2.
have you tried Struts 2.0.11.2?
You may already know it, but Struts 2.1.2 is still beta.
Brad Cupit
Louisiana State University - UIS
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org