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?
If you're talking about Struts 1.x, there's no ActionMapper class,
and ActionMapping is more like a configuration object than a piece of
logic.
Still, in Struts 1.3.x, you could radically alter the way a specific
action for invocation is selected simply by replacing the
"SelectAction" command in the chain of commands used by the
composable request processor.
this URL may help a little, if you haven't looked into this a lot:
http://struts.apache.org/struts-action/userGuide/building_controller.html#request_processor
here's a little about how you actually change where Struts looks for
a chain-config XML file (since you'd have to copy the one in the
distribution and edit it if you want to change any of the steps in
the chain.)
http://struts.apache.org/struts-action/userGuide/configuration.html#dd_config_servlet
Is this the direction you were looking to go?
Joe
--
Joe Germuska
[EMAIL PROTECTED] * http://blog.germuska.com
"You really can't burn anything out by trying something new, and
even if you can burn it out, it can be fixed. Try something new."
-- Robert Moog
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]