I have been trying to find some example how to access my own method in my own bean (let's say from header.htm page), but I have not been able to find any example of that. Should the bean implement some interfarce? Should I register the bean somewhere to be available in header.htm? I checked the documentation of freemarker but they just use some "root" object where they insert objects, but the "root" object itself has not been explained anywhere. I am really confused. Thanks for your help.
Roman [originally posted on jforum.net by romant]
Migrated From Jforum.net
posted 11 years ago
Root object is just a container for any objects visible to the Freemarker page. Think of it like the pageContext in JSPs. I'm not sure where JForum handles this, you would have to modify this section to add your own custom objects. [originally posted on jforum.net by msernatinger]