I can't say with 100% certainty because the context of this isn't totally clear, but I'm relatively sure root is the root of the Freemarker data model, which means it's nothing but a plain old Java Map. Without seeing the rest of that class I couldn't tell you how to get a handle to root, but somewhere should be instantiation of some type of Map, and it should be named root.
-- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM/Yahoo: fzammetti MSN: [EMAIL PROTECTED] Author of "Practical Ajax Projects With Java Technology" (2006, Apress, ISBN 1-59059-695-1) and "JavaScript, DOM Scripting and Ajax Projects" (2007, Apress, ISBN 1-59059-816-4) Java Web Parts - http://javawebparts.sourceforge.net Supplying the wheel, so you don't have to reinvent it! On Wed, November 28, 2007 12:26 pm, MassimoH wrote: > > How do I do something like this: > > public class CustomFreemarkerManager extends FreemarkerManager { > @Override > protected BeansWrapper getObjectWrapper() { > BeansWrapper beansWrapperInstance = super.getObjectWrapper(); > > // !!! This won't compile due to "root". What is that object > and how do > I > get a reference to it? !!! > root.put("statics", beansWrapperInstance.getStaticModels()); > root.put("enums", beansWrapperInstance.getEnumModels()); > > return beansWrapperInstance; > } > } > > -- > View this message in context: > http://www.nabble.com/FreeMarker-Question-tf4889630.html#a13996035 > Sent from the Struts - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]