Re: [htmltmpl] html-template-java
Brought to you by:
samtregar
From: Ralf U. <rul...@we...> - 2002-06-30 10:54:32
|
Hi Philip, thanks for your help. ----- Original Message ----- From: "Philip S Tellis" <phi...@gm...> To: "ralf ullrich" <rul...@we...> Sent: Friday, June 28, 2002 4:33 PM Subject: Re: [htmltmpl] html-template-java > open HTML/Tmpl/Parsers/Parser.java > function: > private String getTagType(String tag) > > > change (line 249): > tag_type = tag; > > to: > tag_type = tag.toLowerCase(); > This did the trick, tags do their job in uppercase now. But if I may ask another (probably stupid) question: where does the <TMPL_INCLUDE> tag search for the includes? I tried two classes in different contexts: 1.: a class for the command-line. the templates are located in the same directrory. when i run that class it finds it includes and parses them. no problem in this scenario. 2.: a servlet class that reads it template via getPathTranslated(). The template is parsed correctly and outputs exactly what i expect, except if I put a <TMPL_INCLUDE NAME="inc.tmpl"> in my template. I guess the servlet doesn't know where the inc.tmpl isnt located. So I put "path", "c:/templates" in template_init, but that doesn't work either. Did I get the use of path wrong? Yours, ralf |