velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Kienenberger <mkien...@alaska.net>
Subject Re: Disable direct acces to vm's when using velocity + struts + tiles
Date Mon, 03 Jan 2005 20:18:39 GMT
Matt Higgins <mhiggins@bluesocket.com> 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.

-Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Mime
View raw message