velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nathan Bubna <nbu...@gmail.com>
Subject Re: Local variables; string concatenation within macro calls
Date Fri, 09 Sep 2005 14:42:15 GMT
On 9/9/05, Scott Edward Skinner <sskinner@cloud9.net> wrote:
> Can you define local variables in Velocity--variables that do not
> reference anything from the controller?

yes.  #set( $foo = "hello world!" )

> Can you perform concatenation within a macro call. For example...
> 
> #someMacro($request.getContextPath() + "/static")

not like that.  do this:

#someMacro( "${request.contextPath}/static" )

> S     |\_._/|     .-.
> E     | o o |_   / /
> S   _.(  T  ) `./ /
> ---(((-`-(((---------
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
> 
>

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


Mime
View raw message