velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lanxiazhi <lanxia...@gmail.com>
Subject simple problem
Date Mon, 20 Jul 2009 06:37:54 GMT
hello everyone out there,thank you for your attention:
(1)
#set($a=1)
## I want to output $a+1 which is 2 DIRECTLY,how? If no way ,I can use
#set($a=$a+1) or #set($b=$a+1) instead,which is a little complicated.
(2)
#set($newline="hello\n")
 ## I want to include a new line charactor in a string varible,when output
,result in a new line,how?

thank you.

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