velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lawrence.Si...@MSCsoftware.com
Subject creating new instances
Date Sat, 04 Sep 2004 14:21:44 GMT
Is it possible to create new instances of a class from a velocity 
template?  I'd like to do something like "#set($foo = 
com.foo.bar.class.getConstructor().newInstance())".  I know that doesn't 
work, but is there another way to achieve that?

Larry Siden, IBS consultant, Viper team
x72612
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message