* This method sets up the template cache.
*/
private void initJsp() throws Exception
{
ServletContext context = TurbineServlet.getServletContext();
Configuration config = getConfiguration();
/*
* Use the turbine template service to translate
* the template paths.
*/
paths = TurbineTemplate.translateTemplatePaths(
config.getStringArray("templates"));
/* not working properly - removing until I can investigate (jdm)
if (path.startsWith("/"))
{
path = path.substring(1);
}
if (path.length() > 0 && !path.endsWith("/"))
{
path += "/";
}
*/
bufferSize = config.getInt("buffer.size", 8192);
/*
* Register with the template service.
*/
registerConfiguration("jsp");