DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15921>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15921

Allow relative actions in struts-config.xml

           Summary: Allow relative actions in struts-config.xml
           Product: Struts
           Version: 1.1 Beta 3
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Controller
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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).

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

Reply via email to