Is there an easy way to get the portion of the request's path sans the request controller mapping prefix?
Example:
URL:
Simple Request Mapping Snippet:Code:http://server/webcontext/controller_request/directory/filename.ext
Controller Snippet:Code:<prop key="/controller_request/**/*.ext">theController</prop>
Thanks. Garth.Code:public ModelAndView handleRequest( HttpServletRequest request, HttpServletResponse response) { String partialPathAndFilename = someHelperClass.getPathWithoutMappedRequest( ... ); // returns /directory/filename.ext


Reply With Quote