<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)
<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)
主题?
干嘛要加这个 报错去掉就完了么!
<s:head theme="ajax" />是将struts中一些跟ajax有关的js导入当前的页面,使用struts2的ajax功能必须有,我的问题是少了一个包struts2-dojo-plugin-2.2.1.jar, strut2.16之后就把ajax功能提取出来单独放进这个包了,所以他老是报找不到模板
找不到这个、有可能包含在那个jar包里面了
你那是对于web-inf 下的jsp,在webroot下的 直接可以跳过去