This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes JForum and the fly likes I want to add a new template, need help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » JForum
Bookmark "I want to add a new template, need help" Watch "I want to add a new template, need help" New topic
Author

I want to add a new template, need help

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: I want to add a new template, need help
 
Similar Threads
Errors installing 2.1.7b3 on JDK 1.4.2_06/Tomcat 6.0.10/MySQL -5.0.37/Windows 2003 server
FreeMarker meets JSP
Add a new page
What are the minimum requirements for JForum ?
Freemarker support for JSP taglibs in JForum