[Actionframework-users] Velocity file.resource.loader.path
Status: Inactive
Brought to you by:
ptoman
From: Armando R. <ar...@ho...> - 2003-05-15 08:26:43
|
Petr, all, For deployment purposes, we need to access Velocity templates from outside the servlet context. We have patched method 'relativizeLoaderPath' in org.actionframework.engines.velocity.VelocityServlet as follows: 74c74,76 < String realPath = getServletContext().getRealPath(token); --- > String realPath = (token.charAt(0)=='/') > ? token > : getServletContext().getRealPath(token); It will leave unchanged the absolute paths in velocity.properties. I hope you find it acceptable for next revision. Best regards, Armando -- Armando Ramos http://www.hola.com |