Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

how to access a bean method from header.htm

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,
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
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic