The following should do it:
 
#set($hello = "hello")
<%
print("${hello} world");
%>


From: Duke Tantiprasut [mailto:duketantiprasut@gmail.com]
Sent: 20 September 2006 23:04
To: xwiki-users@objectweb.org
Subject: [xwiki-users] passing values from velocity to groovy

Hi All,

How do you do something like this:

#set($hello = "hello")
<%
print(hello+" world");
%>

Duke