Yep, already did that as per the migration guide, but the problem could to be the ognl expression which doesn't seem to work in 2.1.1. I'll have to look into it further.
And yes, the exception actually causes an HTTP status 500 with Caught OgnlException while setting property 'name' on type 'org.apache.struts2.dispatcher.ServletActionRedirectResult'. - action - file:/usr/local/glassfish-v2ur1/domains/domain1/applications/j2ee-modules/... so I'll be filing a bug soon. On Fri, Apr 18, 2008 at 4:18 PM, Al Sutton <[EMAIL PROTECTED]> wrote: > Toni, > > Try using redirectAction instead of redirect-action. > > Al. > > ----- Original Message ----- From: "Don Brown" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <user@struts.apache.org> > Sent: Friday, April 18, 2008 2:12 PM > Subject: Re: Converting action configuration from 2.0 to 2.1 - how to > convert parameters to actions > > > > Hmm...what should happen is those exceptions should be logged as a > warn, but the process should continue like normal. If that isn't the > case, definitely file a bug and put it against 2.1.2 > > Don > > On Fri, Apr 18, 2008 at 11:11 PM, Toni Lyytikäinen <[EMAIL PROTECTED]> > wrote: > > > Hello, > > > > I'm in the process of converting a Struts 2.0.11 application to Struts > > 2.1.1, and ran into some trouble concerning the action result > > configuration > > in struts.xml. Basically this is what I had in 2.0.11: > > > > <result name="edit" type="redirect-action"> > > <param name="actionName">Users_edit</param> > > <param name="parse">true</param> > > <param name="name">${user.username}</param> > > </result> > > > > This resulted in an url like http://.../Users_edit.action?name=toni > > > > But for 2.1.1 this approach isn't working, as it throws an exception: > > > > There was an exception while instantiating the result of type > > org.apache.struts2.dispatcher.ServletActionRedirectResult > > Caught OgnlException while setting property 'name' on type > > 'org.apache.struts2.dispatcher.ServletActionRedirectResult'. - Class: > > ognl.ObjectPropertyAccessor > > ... > > Caused by: ognl.NoSuchPropertyException: > > org.apache.struts2.dispatcher.ServletActionRedirectResult.name > > > > What do I need to do to make these kind of definitions compatible with > > Struts 2.1.1? > > > > > --------------------------------------------------------------------- > 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] > >