[htmltmpl-java] Re: Upper Case Tags and Encoded URLs
Status: Beta
Brought to you by:
bluesmoon
From: Philip S T. <phi...@gm...> - 2002-06-28 18:57:56
|
> I recently downloaded HTML-Template-Java and think its great to > have it for Java as well. When I startet to play around a little I > found that my templates dont work if I use the template tags in > upper case; lower case just works fine. As I guess from the docs > HTML-Template uses case insensitivity as default, so uppercase tags > should work. Did I forget something? Nope, it was a bug in the case handling for closing tags. It's fixed in CVS. > what if users dont allow cookies? I then would have to use > url-rewriting and put something like > > <a href="<TMPL_VAR encoded_url>"> > > in my templates, which forces me to store url in a servlet I guess. > Is there any other better solution for this? not that I know of. encoded urls have to be generated by the servlet engine, so the only way to do it is through your java program. the template has no logic in it. Philip -- ...when fits of creativity run strong, more than one programmer or writer has been known to abandon the desktop for the more spacious floor. - Fred Brooks, Jr. |