Hammad,

I did not notice this before but shouldn't the line...

services.TemplateLocator.templateRoot=/WEB-INF/templates,WEB-INF/test/templa
tes

... be ...

services.TemplateLocator.templateRoot=/WEB-INF/templates,/WEB-INF/test/templ
ates

NOTE missing leading "/" in your 2nd path.

-----Original Message-----
From: Hammad Sophie [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 2:29 PM
To: Jetspeed Users List
Subject: RE: velocity template files path problems


Thanks for your help Chris.

I am currently using the 5/2/02 nightly build. Do I still need to update?

Actually I tried adding the path to the jetspeedresources.properties file as
well: I changed it to the following:
services.TemplateLocator.templateRoot=/WEB-INF/templates,WEB-INF/test/templa
tes

Is that correct?

It still doesn't seem to work which either means that the change was after
5/2/02 or I'm still doing something wrong.
I tried searching the bugzilla db for the fix but couldn't find anything.
Would appreciate knowing when it was fixed so that I can know whether I need
to patch or not.

Thanks.

Hammad.

-----Original Message-----
From: Chris Kimpton [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 12:23 AM
To: Jetspeed Users List
Subject: Re: velocity template files path problems


Hi,

--- Hammad Sophie <[EMAIL PROTECTED]> wrote:
> How do I add an alternate location for jetspeed to pick up velocity
> templates from?

The support for this has only just been added, so make sure you are
using current jetspeed from CVS - not the 1.3a2 release.

>
> services.VelocityService.file.resource.loader.path =
> /WEB-INF/templates/vm,
> WEB-INF/test/templates/vm

This is correct.

> Also, what is the following entry in jetspeedresources.properties
> for?
> services.TemplateLocator.templateRoot=/WEB-INF/templates
>

This location is where the JetspeedTemplateLocator service looks for
templates - it usually looks for a language/country/device specific
in these directories and then passes the expanded path to the
velocity (or jsp) service.

Thus you need to add your new template directory here too.

This is the recent code change in CVS - so you'll need to download
that.

There is a third place to change for jsp's - if you are using them...

Regards,
Chris

=====
------------------------------------------
http://www.soccer2002.org.uk - The Game is On!

__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to