Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

Problem with freemaker, basic Struts2 app in Google App Engine

Oscar Calderón

2010-03-10

Replies: Find Java Web Hosting

Author LoginPost Reply
Hi to all, i'm testing Google App Engine uploading a basic Struts2
application (without hibernate, spring or something like that) and i have an
error concerning freemaker when i use struts tags. My index.jsp is the next:

<%@(protected)"%>
<%@(protected)" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
 "http://www.w3.org/TR/html4/loose.dtd">

<html>
 <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Ejemplos con Struts 2</title>
 </head>
 <body>
    <h1>Pagina de Inicio</h1>
    <s:a href="FormularioEntrada.action">Formulario Entrada</s:a>
 </body>
</html>

As you can see i use a <s:a tag but i see that i have this error:

<pre>Expression parameters.templateDir is undefined on line 42, column 15 in
template/simple/a.ftl. The problematic instruction: ---------- ==&gt;
${parameters.templateDir} [on line 42, column 13 in template/simple/a.ftl]
in include "/${parameters.templateDir}/simple/scripting-events.ftl" [on line
42, column 1 in template/simple/a.ftl] ---------- Java backtrace for
programmers: ---------- freemarker.core.InvalidReferenceException:
Expression parameters.templateDir is undefined on line 42, column 15 in
template/simple/a.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) at
freemarker.core.DollarVariable.accept (DollarVariable.java:76) at
freemarker.core.Environment.visit (Environment.java:196) at
freemarker.core.MixedContent.accept (MixedContent.java:92) at
freemarker.core.Environment.visit (Environment.java:196) at
freemarker.core.Environment.renderElementToString (Environment.java:1461) at
freemarker.core.StringLiteral.getStringValue (StringLiteral.java:95) at
freemarker.core.Include.accept (Include.java:110) at
freemarker.core.Environment.visit (Environment.java:196) at
freemarker.core.MixedContent.accept (MixedContent.java:92) at
freemarker.core.Environment.visit (Environment.java:196) at
freemarker.core.Environment.process (Environment.java:176) at
freemarker.template.Template.process (Template.java:232) </pre>

I'm not using any template or something like that, i´ve set the ui.theme to
simple, also you can see the error here (the url of google application):

https://anicetoapp2.appspot.com/

I don't know about this but i imagine that the solution is to override some
property value or something like that, or not?

Regards.
--
Oscar

http://www.javahowto.net/
©2008 gg3721.com - Jax Systems, LLC, U.S.A.