<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>管理员页面</title>
<s:head theme="ajax"/>
</head>
加上那句之后就一直报错:
严重: Attempted: /template/ajax/head.ftl
2010-11-26 17:16:34 com.opensymphony.xwork2.util.logging.jdk.JdkLogger error
严重: The TemplateLoader provided by the FreeMarker Configuration was a: freeer.cache.MultiTemplateLoader
2010-11-26 17:16:34 org.apache.catalina.core.ApplicationDispatcher invoke
严重: Servlet.service() for servlet jsp threw exception
java.io.FileNotFoundException: Template /template/ajax/head.ftl not found.
at freeer.template.Configuration.getTemplate(Configuration.java:489)
at freeer.template.Configuration.getTemplate(Configuration.java:452)

解决方案 »

  1.   

    可是,lib文件夹下,freeer.jar等常用的6个struts2的包都有啊,我又下载了dwr.jar,可是还有这个问题
      

  2.   

    <s:head theme="ajax"/>
    主题? 
    干嘛要加这个 报错去掉就完了么!
      

  3.   


    <s:head theme="ajax" />是将struts中一些跟ajax有关的js导入当前的页面,使用struts2的ajax功能必须有,我的问题是少了一个包struts2-dojo-plugin-2.2.1.jar, strut2.16之后就把ajax功能提取出来单独放进这个包了,所以他老是报找不到模板
      

  4.   

    Template /template/ajax/head.ftl not found
    找不到这个、有可能包含在那个jar包里面了
      

  5.   

    访问的时候是直接调用的JSP页面,还是通过ACTION转发的?一定要经过Action的!!
      

  6.   


    你那是对于web-inf 下的jsp,在webroot下的 直接可以跳过去