velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "blindholm" <blindh...@visi.com>
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 Application.properties 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, 

Beth 


--
To unsubscribe, e-mail:   <mailto:velocity-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:velocity-user-help@jakarta.apache.org>


Mime
View raw message