Andy Law wrote:
e.g.
/foo/Action1.action runs action1 passing in 'foo' and /bar/Action1.action
runs the same action passing in 'bar'.
How should I code/configure/build this kind of thing.
In Struts 2.0.x, you may be able to use wildcards in the namespace
depending on how many variations you need.
http://struts.apache.org/2.0.11.2/docs/wildcard-mappings.html
In Struts 2.0.x, you may also be able to use the RestfulActionMapper to
pass simple properties to your action through the path.
http://struts.apache.org/2.0.11.2/docs/restfulactionmapper.html
Use it with a CompositeActionMapper.
In Struts 2.1.x, use the NamedVariablePatternMatcher to pass parameters
through the namespace, as described in this thread:
http://www.nabble.com/REST-plugin-URL-syntax-td17855192i20.html
It can be used without the REST plugin/conventions.
regards,
Jeromy Evans
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]