velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Pfeifer" <>
Subject Global variables
Date Wed, 31 May 2006 04:00:13 GMT


this must be a frequent question but I couldn't find an answer to it on the website.

I've got following velocity template:

#set ($tempLink = "http://${subdomain}${aId}&c=${cId}")
#if ($pId)
  #set ($tempLink = $tempLink + "&p=${pId}")
#if ($preurl)
  #set ($tempLink = $preurl + $tempLink)

The fact of the matter is: Even though neither $pId or $preurl is null (I verified this and
yes, it does enter the #if-blocks) the resulting tempLink is always

The question is: Why don't the subsequent #set-directives change the value of $tempLink?

Thanks in advance,
Daniel Pfeifer

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message