On Tue, Jul 26, 2005 at 05:49:24PM +0300, Eugeny N Dzhurinsky wrote:
> On Tue, Jul 26, 2005 at 05:22:27PM +0300, Eugeny N Dzhurinsky wrote:
> > I am accessing the page with
> > http://localhost:8180/GVTMS/app/
> > I guess I need to specify some default template to use, or something like
> > this?
> Okay, with some experiments I found I need to provide the default screen to
> the RunData in the page like this
> if ("".equals(data.getScreen()))
> data.setScreen("Default");
> but now there is an error: Path templates/layouts/layout.jsp does not start
> with a "/" character
> And at this point I totally confused.
Well, not sure if I did in correct way, but i found the turbine ALWAYS strips
the leading "/" from the paths, used to get the request dispatcher. I hacked
it a bit, and it seem to work, may be somebody will be interested - or suggest
soem other way =)
--- TurbineJspService.java.0 Tue Jul 26 19:35:10 2005
+++ TurbineJspService.java Tue Jul 26 19:35:51 2005
@@ -169,6 +169,8 @@
throw new TurbineException(
"Template " + templateName + " not found in template paths");
}
+ if (!relativeTemplateName.startsWith("/"))
+ relativeTemplateName="/"+relativeTemplateName;
// get the RequestDispatcher for the JSP
RequestDispatcher dispatcher = data.getServletContext()
--
Eugene N Dzhurinsky
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]