Attribute theme invalid for tag head according to TLD
来源:互联网 发布:互联网美工岗位职责 编辑:程序博客网 时间:2024/06/07 03:38
转http://blog.csdn.net/chenweihaoshuai/article/details/6985285
在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,
- uva 11078 Open Credit System
- 找出所有能够写成各位数字5次方之和的数之和。
- Redhat Linux---rpm 命令详解
- 第 3堂作业
- MFC学习之CFileDialog
- Attribute theme invalid for tag head according to TLD
- 在C#中实现对ListView点击列标题自动排序功能
- openGL在vs中的配置及基本错误
- Hibernate分页查询小结
- linux 共享内存分析
- 基于Linux开源VOIP系统LinPhone[四]
- struts2处理上传文件路径问题
- xdebug的安装
- 一些必不可少的Sublime Text 2插件