On 7/29/10 12:02 AM, Franz Wong wrote:
http://localhost:8080/myApp/action/myAction/user/name/Peter).

I would like to map those parameters in the following way.

class MyAction {
     private String searchType; // user
     private String searchMethod; // name
     private String searchData // Peter
}

Is there any Action class can parse the parameters into properties of
Action?


<action name="/action/myAction/*/*/*" class="path.to.MyAction">
  <param name="searchType">{1}</param>
  <param name="searchMethod">{2}</param>
  <param name="searchData">{3}</param>
  <result of some form />
</action>

I think there's some flag to throw to allow slashes in action names...

Or as was suggested earlier today:  URLRewrite

-Dale

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to