Question about "root" in FreeMarker

MassimoH <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
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;
        }
}

This is in a Struts2 project if that matters. Thanks!
-- 
View this message in context: http://www.nabble.com/Question-about-%22root%22-in-FreeMarker-tf4893131.html#a14012651
Sent from the freemarker-user mailing list archive at Nabble.com.


-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.