struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Toni Lyytikäinen" <>
Subject Converting action configuration from 2.0 to 2.1 - how to convert parameters to actions
Date Fri, 18 Apr 2008 13:11:03 GMT

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>

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
Caught OgnlException while setting property 'name' on type
'org.apache.struts2.dispatcher.ServletActionRedirectResult'. - Class:
Caused by: ognl.NoSuchPropertyException:

What do I need to do to make these kind of  definitions compatible with
Struts 2.1.1?

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