James,

Your ActionMapper question sounds like Webwork 2.2.2/Struts Action 2.0.  I
asked Patrick Lightbody (author: Webwork in Action) pretty much the same
question when he was the speaker at the Boston Java User Group months ago
(he came to talk about Struts Action 2.0).  Anyway, you can set the
ActionMapper class in webwork.properties with this configuration line:

### How request URLs are mapped to and from actions
webwork.mapper.class=com.opensymphony.webwork.dispatcher.mapper.DefaultActio
nMapper

Other details of the webwork.properties file are listed in the WebWork docs
section:
http://www.opensymphony.com/webwork/wikidocs/webwork.properties.html

Now, the ActionMapper is really an interface and there is the
DefaultActionMapper class direct code from CVS is at:
https://xwork.dev.java.net/source/browse/webwork/src/java/com/opensymphony/w
ebwork/dispatcher/mapper/DefaultActionMapper.java?rev=1.28&view=markup

A second class is the RestfulActionMapper that takes parameters embedded in
the path as opposed to being given GET parameters or hidden as variables
inside a POST.  That class other relevant classes such as the ActionMapper
interface are in this CVS (web-visible) directory:
http://wiki.opensymphony.com/display/WW/ActionMapper

Regards,
David

-----Original Message-----
From: Joe Germuska [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 07, 2006 12:01 AM
To: James Bost; user@struts.apache.org
Subject: Re: Action Mapping


At 3:00 PM -0700 6/6/06, James Bost wrote:
>I am working on URL cleaning in my struts web application. How can I
>create a custom ActionMapper and how to use it?

Reply via email to