Dear Wiki user, You have subscribed to a wiki page or wiki category on "Jakarta-velocity Wiki" for change notification.
The following page has been changed by ClaudeBrisson: http://wiki.apache.org/jakarta-velocity/StreamLayoutServlet ------------------------------------------------------------------------------ * tools.view.servlet.layout.default.template the default layout template. Default is default.vtl. * tools.view.servlet.error.template the error template. Default is error.vtl. - Performance issue: when the resource loader cache is off, the page template is parsed twice per request. Be sure to turn on the cache in a production environment. + When the resource loader cache is off, the page template is parsed twice per request. Apart from a performence issue, there is also a problem + with the #head directive since it works in a cumulative way. Since there is no generic way for the servlet to know whether cache is on or off, + there is currently no simple workaround to this problem, which means that cache MUST be turned on for #head() to work properly. The patch is attached. Please note that the new directives make use of the new velocity-1.5 TemplateInitException, so you will have to compile velocity-tools against velocity-1.5-dev. Otherwise you can easily adapt the sources to have it work with velocity-1.4 by replacing TemplateInitException with a generic Exception. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
