-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Pete,
On 2/19/2009 2:46 PM, Pete Helgren wrote: > I use Freemarker (and a smaller framework called niggle) as my servlet > template engine and the only other thing I reference is a resource base > in the servlet context like this: > > <init-param> > <param-name>RESOURCE_BASE</param-name> > <param-value>../../templates</param-value> > </init-param> This just tells Freemarker where to find your templates. It has nothing to do with the layout of your URIs. > Perhaps niggle is doing the context magic for me but I haven't run into > this issue in other deployments, just this one. And, as you indicate, > it could be dumb luck (wouldn't be the first time!) I think it is luck: when deployed in a context, all the relative links work. You're now finding that relocation isn't working out well. AFAIK, Freemarker does not include a standard way to format URLs all in one shot. I thumbed-through the documentation and it wasn't entirely clear to me how to do it. I suspect someone well-versed in Freemarker will be able to interpret my JSP syntax into usable FTL. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkmeq0kACgkQ9CaO5/Lv0PA9RACfRAZjqSvKZX+SI3ryqI1GB19u A8oAniZx7bMhrPrAgS80fXl+/qAtCIBi =nqs0 -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org