velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kLy <q...@army.com>
Subject Re: How to call a Java method with params from velocity?
Date Sun, 14 Dec 2008 12:57:58 GMT

Great, thanks! :)

I'll give that a try


Nathan Bubna wrote:
> 
> Can you not just do something like:
> 
> context.put("URLEncoder", new URLEncoder());
> 
> and then
> 
> $!URLEncoder.encode($cf.getValue($issue))
> 
> 
> If that doesn't work for some reason (private ctor or uncaught
> exceptions), create your own simple "tool" class that you can create
> an instance of, and add a method that calls URLEncoder.encode(String)
> and does whatever else you need it to do.
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-call-a-Java-method-with-params-from-velocity--tp20789552p21000077.html
Sent from the Velocity - User mailing list archive at Nabble.com.


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


Mime
View raw message