struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Välimaa" <valimaa.ju...@gmail.com>
Subject Re: Converting action configuration from 2.0 to 2.1 - how to convert parameters to actions
Date Fri, 18 Apr 2008 13:18:56 GMT
For Struts 2.1.1, use type="redirectAction" instead of
type="redirect-action". I just had the pleasure of debugging some problems
caused by it.
On Fri, Apr 18, 2008 at 4:12 PM, Don Brown <donald.brown@gmail.com> wrote:

> 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 <tolyen@gmail.com>
> 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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message