Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Struts
Search Coderanch
Advance search
Google search
Register / Login
Win a copy of
OCP Oracle Certified Professional Java SE 21 Developer Study Guide: Exam 1Z0-830
this week in the
Programmer Certification
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
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
Liutauras Vilda
Jeanne Boyarsky
paul wheaton
Sheriffs:
Ron McLeod
Devaka Cooray
Henry Wong
Saloon Keepers:
Tim Holloway
Stephan van Hulst
Carey Brown
Tim Moores
Mikalai Zaikin
Bartenders:
Frits Walraven
Forum:
Struts
Struts 2 error for using Freemarker
James.HD Li
Greenhorn
Posts: 10
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi guys,
I'm a new guy to
struts
2. I'm following the get in the door examples and encountering an error while using struts tags. The error is as below:
Expression parameters.templateDir is undefined on line 23, column 15 in template/xhtml/text.ftl. The problematic instruction: ---------- ==> ${parameters.templateDir} [on line 23, column 13 in template/xhtml/text.ftl] in include "/${parameters.templateDir}/${parameters.theme}/controlheader.ftl" [on line 23, column 1 in template/xhtml/text.ftl] ---------- Java backtrace for programmers: ---------- freemarker.core.InvalidReferenceException: Expression parameters.templateDir is undefined on line 23, column 15 in template/xhtml/text.ftl. at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124) at freemarker.core.Expression.getStringValue(Expression.java:118) at freemarker.core.Expression.getStringValue(Expression.java:93)
I have been searching on google but got no result. Hope there is someone here can give me some usefull information.
Thanks in advance
James
James.HD Li
Greenhorn
Posts: 10
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
anyone can tell me where the parameter.templateDir defined?
David Newton
Author
Posts: 12617
I like...
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Without knowing *how* you get this error it's impossible to help.
Been there. Done that. Went back for more. But this time, I took this tiny ad with me:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
s:doubleselect exception/ error
Sun Java System Application Server - Freemarker template error! parameters.templateDir is undefined
Question related to s:doubleselect
How to use Struts 2 UI Tags in GAE?
s:doubleselect exception/ error
More...