[ http://issues.apache.org/jira/browse/VELTOOLS-14?page=all ]
Tim Colson moved VELOCITY-276 to VELTOOLS-14:
---------------------------------------------
Project: VelocityTools (was: Velocity)
Key: VELTOOLS-14 (was: VELOCITY-276)
Component: (was: Tools)
Version: (was: 1.4)
> VelocityViewServlet doesn't support templates stored in sub-dir.
> ----------------------------------------------------------------
>
> Key: VELTOOLS-14
> URL: http://issues.apache.org/jira/browse/VELTOOLS-14
> Project: VelocityTools
> Type: Bug
> Environment: Operating System: other
> Platform: All
> Reporter: Brett Sutton
> Attachments: VelocityViewServlet.patch
>
> 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'.
--
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]