velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "blindholm" <>
Subject performance impact of calling variables
Date Fri, 06 Sep 2002 21:20:17 GMT
Using Struts/Velocity 

I have a property set in the file that contains a 
path. I then use that property within the Velocity pages. 

Is there any benefit to calling that property once and setting it to a 
variable in the velocity page? Instead of calling $msg.imagepath each time I 
would do the following at the beginning of each page. 

#set ( $velpath = $msg.imagepath ) 

then call $velpath when I need it. 

Or, is there another recommended location within velocity to set global 
variables that would be equivalent or faster? 

Thank you, 


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message