Thank you, but please either find a bug in bugzilla to attach it to or create one and attach it. We'll probably just lose the patch if you expect the list to keep track of it.

http://issues.apache.org/bugzilla -- That's where you can put it.

Thanks for the help!

Graham Leggett wrote:

Hi all,

The attached patch allows relative paths to be specified for actions defined in the action-mappings element of struts-config.xml.

If the path attribute of the action element is specified without a leading slash, struts now suffix matches the action-mapping paths against the path in the request, instead of doing an exact match. Previously in this case the path would never match.

If the path attribute is specified with a leading slash, the behaviour is to find an exact match the same as now.

This feature is useful where you want struts to ignore directories in your URL, for example:

http://somewhere/context/struts/-country-/show/info.do might display info on a particular "country". Defining the action-mapping path as "show/info" will match all URLs ending with "show/info.do" regardless of the value of "-country-".

Previously "-country-" would have to be specified as either a cookie (not always on), in the session (which may be lost at any time), or as a parameter (requiring link mangling on pages).

Comments...?

Regards,
Graham

--
Eddie Bush





--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to