You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Peter Lynch <pe...@yahoo.com> on 2001/06/27 06:15:29 UTC

Velocity logging via TR props file

Hey there,

I am trying to turn on debugging in my velocity log by
setting the following properties in my turbine props
file.

I added the following: 

services.VelocityService.runtime.log.invalid.references
= true
services.VelocityService.runtime.log.error.stacktrace
= true
services.VelocityService.runtime.log.warn.stacktrace =
true
services.VelocityService.runtime.log.info.stacktrace =
true


I don't even see where the TurbineVelocityService is
taking care of these properties. Do I have to add it
to the initVelocity() method?

Is there a way to just pass a properties file to
velocity somewhere rather than rely on settings in the
Turbine props file? If not I guess I should add one...

-Peter



__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Turbine + JSP

Posted by zahid <za...@hotmail.com>.
i am using jsp instead .vm template.
for this i am using a layouts/default.jsp where i set the
navigations/xxx.jsp and screens/xxx.jsp.
i have only make actions and i am using the turbine's class JspLayout,
BaseJspNavigation, JspPage and BaseJspScreen.
Am i doing right??
if no then how i can do??

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: Velocity logging via TR props file

Posted by Jason van Zyl <jv...@apache.org>.
On 6/27/01 12:15 AM, "Peter Lynch" <pe...@yahoo.com> wrote:

> Hey there,
> 
> I am trying to turn on debugging in my velocity log by
> setting the following properties in my turbine props
> file.
> 
> I added the following:
> 
> services.VelocityService.runtime.log.invalid.references
> = true
> services.VelocityService.runtime.log.error.stacktrace
> = true
> services.VelocityService.runtime.log.warn.stacktrace =
> true
> services.VelocityService.runtime.log.info.stacktrace =
> true
> 
> 
> I don't even see where the TurbineVelocityService is
> taking care of these properties. Do I have to add it
> to the initVelocity() method?

No.

Look harder. In the initVelocity there is

Velocity.setConfiguration(getConfiguration())

All the properties stated in the TRP file are passed
on to Velocity.
 
> Is there a way to just pass a properties file to
> velocity somewhere rather than rely on settings in the
> Turbine props file? If not I guess I should add one...

Any valid velocity property is obeyed, in the TRP file
they simply have the services.VelocityService prefix. They
are set in the TRP file primarily because the template paths
are translated to the webapp space.
 
> -Peter
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org

-- 

jvz.

Jason van Zyl

http://tambora.zenplex.org
http://jakarta.apache.org/turbine
http://jakarta.apache.org/velocity
http://jakarta.apache.org/alexandria
http://jakarta.apache.org/commons



---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org