Re: best practice to create a java object instance
Denis <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Chris > I am trying to convert the product I am working on from Velocity to > Freemarker, after feeling the limitation of Velocity. One question > here: > > What's the best practicen to create a java object instance? > I see this doesn't work since it's only applicable to "TemplateModel". > <#assign hashmap = "java.util.HashMap"?new() > > <#assign obj = "com.any.java.object"?new() > Er, why do you want to do that in the template? Certainly that belongs to the model. -- Denis. > > > Thanks! > > -- > Chris Lu ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone