DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=29837>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=29837 VelocityViewServlet doesn't support templates stored in sub-dir. Summary: VelocityViewServlet doesn't support templates stored in sub-dir. Product: Velocity Version: 1.4 Platform: All OS/Version: Other Status: NEW Severity: Major Priority: Other Component: Tools AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Using tomcat with VelocityViewServlet we store all templates in a subdirectory called 'templates'. Due to other restrictions we only want Velocity templates to be served from that directory. As such in tomcat's web.xml we created a servlet-mapping of <servlet-mapping> <servlet>velocity</servlet> <url-pattern>/templates/*</url-pattern> </servlet-mapping> If the servlet context is 'servlet' then we would attempt to access a velocity template by calling http://xx.xx.xx.xx/servlet/templates/home.vm The problem with this is that the VelocityViewServlet throws a 'Resource not found' exception saying that it can't find '/templates'. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
