Well, I found out that the problem is not the ognl expression, as trying to
set static parameters won't work.
I already filed a bug, WW-2600
My action config is quite large, I wonder which are the relevant parts...?
Here's the interceptor stack:
<interceptor-stack name="myDefaultStack">
<interceptor-ref name="exception"/>
<interceptor-ref name="alias"/>
<interceptor-ref name="servletConfig"/>
<interceptor-ref name="authentication"/>
<interceptor-ref name="params"/>
<interceptor-ref name="prepare"/>
<interceptor-ref name="logging"/>
<interceptor-ref name="i18n"/>
<interceptor-ref name="chain"/>
<interceptor-ref name="debugging"/>
<interceptor-ref name="profiling"/>
<interceptor-ref name="actionMappingParams"/>
<interceptor-ref name="checkbox"/>
<interceptor-ref name="staticParams"/>
<interceptor-ref name="params"/>
<interceptor-ref name="conversionError"/>
<interceptor-ref name="validation">
<param
name="excludeMethods">add,input,back,cancel</param>
</interceptor-ref>
<interceptor-ref name="workflow">
<param
name="excludeMethods">add,input,back,cancel</param>
</interceptor-ref>
<interceptor-ref name="sidemenu">
<param name="menu">user</param>
</interceptor-ref>
</interceptor-stack>
Here's the part with the actionmapping:
<action name="Users_save" method="save" class="net.x.y.web.Users">
<result type="redirectAction">
<param name="actionName">Users_list</param>
</result>
<result name="edit" type="redirectAction">
<param name="actionName">Users_edit</param>
<param name="parse">true</param>
<param name="name">${user.username}</param>
</result>
<result
name="input">/WEB-INF/jsp/CustomerAdmin/Users_userForm.jsp</result>
</action>
The error message and the full stacktrace is in the bug report here:
https://issues.apache.org/struts/browse/WW-2600
I'm using Struts 2.1.1-SNAPSHOT and XWork 2.1.1
On Fri, Apr 18, 2008 at 5:05 PM, Al Sutton <[EMAIL PROTECTED]> wrote:
> Toni,
>
> Can you post your updated action config and the full stack trace here,
> there may be something simple we can spot before needing to log a bug.
>
> Al.
>
> ----- Original Message ----- From: "Toni Lyytikäinen" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[email protected]>
> Sent: Friday, April 18, 2008 2:28 PM
> Subject: Re: Converting action configuration from 2.0 to 2.1 - how to
> convert parameters to actions
>
>
> Yes I forgot to mention in the original post that I already changed the
> "redirect-action" to "redirectAction" as per the migration guide here:
>
>
> http://cwiki.apache.org/S2WIKI/troubleshooting-guide-migrating-from-struts-20x-to-21x.html
>
>
>
>
>