Attribute theme invalid for tag head according to TLD
来源:互联网 发布:秃子扳机数据图 编辑:程序博客网 时间:2024/05/17 22:48
在struts-2.2.3.1中加入<s:head theme="ajax"/>这个标签,报错
Expression parameters.parseContent is undefined on line 45, column 28 in template/ajax/head.ftl. - Class: freemarker.core.TemplateObjectFile: TemplateObject.java出错,后网上一查原因为出现此问题的原因:在jsp页面用到了struts提供的ajax主题,但是声明主题时出现问题,struts2.0到struts2.1有一个重要的改变就是对ajax支持的改变,struts2.0的ajax支持主要以DWR和dojo为主,并专门提供ajax主题,如:<s:head theme="ajax"/>,但是在struts2.1不在提供ajax主题,而将原来的ajax主题放入了dojo插件中,我们需要将dojo标签引入到jsp页面,在改为<%@ taglib uri="/struts-tags" prefix="s" %><%@ taglib uri="/struts-dojo-tags" prefix="sd" %>后又出现异常Attribute theme invalid for tag head according to TLD
经过一下午的网上查询,终于找到答案了,至于异常原因也没明说,又将上面
页面上<sd:head theme="ajax" />改成下面这两行,其他的不用改:
<s:head theme="xhtml"/>
<sd:head parseContent="true"/>
问题解决了。希望遇到同样问题的朋友对你有所帮助。
- Attribute theme invalid for tag head according to TLD
- Attribute theme invalid for tag head according to TLD
- Attribute theme invalid for tag head according to TLD
- Attribute name invalid for tag property according to TLD 异常
- Attribute onSubmit invalid for tag form according to TLD
- Attribute name invalid for tag form according to TLD异常解决办法
- Attribute class invalid for tag text according to TLD这个struts错误怎么解决啊
- Struts标签问题:Attribute id invalid for tag form according to TLD
- Struts的莫名问题解决方法:Attribute class invalid for tag present according to TLD
- STRUTS开发问题?Attribute name invalid for tag form according to TLD
- Attribute name invalid for tag property according to TLD异常错误
- iterator标签用begin属性报错:Attribute var invalid for tag iterator according to TLD
- Attribute val invalid for tag iterator according to TLD at org.apache.jasper.compiler.DefaultError
- jsp页面加载不了org.apache.jasper.JasperException: Attribute id invalid for tag button according to TLD
- According to the TLD or the tag file, attribute test is mandatory for tag if异常
- 一个Struts的莫名问题解决方法:Attribute class invalid for tag present according to TLD - 巴士飞扬-专注编程,网站,专业技术
- jstl According to TLD or attribute directive in tag file
- According to TLD or attribute directive in tag file,
- 分析HTML5在移动开发方面的发展状况
- ext动态加载树
- 版本控制工具git的安装和常用命令
- 应用程序域
- python实现人人网的自动登录
- Attribute theme invalid for tag head according to TLD
- Thrift 学习笔记2——Windows环境下Thrift的安装、编译以及测试
- 反射(C# 编程指南)
- chrome与opera,ie,firefox比较
- DVSDK中的AAC-LC码流分析(3):raw_data_block()
- Struts1.2总结 struts-config.xml配置
- fork与vfork的区别
- 解释反射的一篇文章
- JAVA地址