• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

I want to add a new template, need help

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

I want to add a new template, but when I do I get the following error.

09:49:39,109 ERROR [runtime ]
Expression session is undefined on line 64, column 162 in default/header.htm.
The problematic instruction:
----------
==> ${session.userId} [on line 64, column 160 in default/header.htm]
in include "header.htm" [on line 1, column 1 in default/message.htm]
in include "${templateName}/message.htm" [on line 7, column 9 in exception.html]
----------

I understand that FreeMarker wants a hash Map with session.userId and other values in it to be able to replace the ${} values. I understand the layout of the hashmap needed for FreeMarker. What I need to know is where in the code are these values setup. I have found places in the code where they put values into the SimpleHash that are used for template processing. But I need to find where they setup the values for the header.htm, bottom.htm. It would also be great if you have instructions on how to add a new template page to jforum with all of the detail you need to do.

Thanks,
Malloc

[originally posted on jforum.net by Malloc]
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic