velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Kienenberger <>
Subject Re: Disable direct acces to vm's when using velocity + struts + tiles
Date Mon, 03 Jan 2005 20:18:39 GMT
Matt Higgins <> wrote:
> Is it possible to disable direct access to vm files ? When using
> velocity and tiles, the user never sees the .vm but if you know the
> correct url you could access 
> /myapp/pages/foo/template.vm
> This would render a bogus pages as it did not go through the tiles
> processor or any of my struts actions. 

I think that anything you put into WEB-INF is no longer directly accessible.

My velocity templates are in ./WEB-INF/pages and other such subdirectories.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message