Hi,
Velocity document says I can have multiple path define for Velocity
templates but somehow URL's are not working for me.
These are values I have in my TurbineResource.properties file.
template.homepage=/Home.vm
screen.homepage=/Home.vm
template.login=/Home.vm
screen.login=
template.error=/Error.vm
services.VelocityService.file.resource.loader.path =
/templates,/templates/auth,/templates/unauth
module.packages=felc.modules
This is how I have my directory structure for templates or these
resource.loader.path (/templates,/templates/auth,/templates/unauth)
templates
auth
layouts
Default.vm
navigations
screens
Error.vm
Home.vm
GlobalMacros.vm
layouts
Default.vm
navigations
screens
Error.vm
Home.vm
GlobalMacros.vm
unauth
layouts
Default.vm
navigations
screens
Error.vm
Home.vm
GlobalMacros.vm
java classes are in felc.modules.screens (Home.java)
Some how only template URL is working.
(http://localhost/servlet/felc/template/Home.vm)
These URL give me Error.vm
http://localhost/servlet/felc/template/auth/Home.vm
http://localhost/servlet/felc/template/unauth/Home.vm
What will be the right way to setup the TurbineResource.properties file and
how I should be using the URL
Thanks for your help and time
Sanjay
--
To unsubscribe, e-mail: <mailto:turbine-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:turbine-user-help@;jakarta.apache.org>
