[ http://issues.apache.org/jira/browse/VELTOOLS-67?page=comments#action_12448927 ] Claude Brisson commented on VELTOOLS-67: ----------------------------------------
> what do you think about making the path a totally separate property of > ServletToolInfo? +1 for a separate "request-path" parameter. That's obviously a cleaner implementation than mine. > Why insist that wildcard paths end with '/' ? What if i wanted to enable a > tool for all /view* (e.g. /viewFoo) but not /edit* (e.g. /editFoo)? It was to somehow mimic the behaviour of the "/*" url-pattern wilcard behaviour in a webapp deployment descriptor, but you are right, we don't need to inforce it. > Patch implementing path-scoped tools > ------------------------------------ > > Key: VELTOOLS-67 > URL: http://issues.apache.org/jira/browse/VELTOOLS-67 > Project: VelocityTools > Issue Type: New Feature > Components: VelocityView > Affects Versions: 1.3 > Environment: all > Reporter: Claude Brisson > Assigned To: Nathan Bubna > Priority: Minor > Attachments: path-scopes.patch > > > This patch adds two new scopes: > <scope>/some_path/*</scope> is a subset of the request scope restricting the > instantiation of tools to servlet requests having an URI that begins with > /some_path/. > <scope>/some_pathname</scope> is a subset of the request scope restricting > the instantiation of tools to servlet requests whose URI matches exactly > /some_pathname -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
