Help coderanch get a
new server
by contributing to the fundraiser
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

FreeMarker meets JSP

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Everyone:

Suppose our existing JSP Header.jsp looks like this, we want integrate the jforum's header.htm in it.



a simple <# include ...> doesnt work with FreeMarker, The problem is that the request object can be accessed in JSP, but how to get it in freemarker
do we have to put the whole Request Object in the SimpleHashMap?

And I more thing, is the simpleHashMap object a Singleton?

Many Thanks!!

[originally posted on jforum.net by shanyangqu]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have created a method in my HomePageAction.java



and in the Header.htm I try to access it by using #{XXX}



and it FreeMarker complaints that, it cant find the veriables



Help please

[originally posted on jforum.net by shanyangqu]
reply
    Bookmark Topic Watch Topic
  • New Topic