No tag " " defined in tag library imported with prefix="s"
来源:互联网 发布:淘宝促销模板代码 编辑:程序博客网 时间:2024/05/01 09:28
页面错误提示:org.apache.jasper.JasperException: /struts2/index.jsp(16,3) No tag "datetimepicker" defined in tag library imported with prefix "s"
原因:struts2.1.6 把struts2.0中的和ajax相关的,如datetimepicker,tree,treenode 都移动到了dojo中了
解决方法:
1.项目中引入struts2-dojo-plugin-2.1.6.jar。
2.jsp中加入如下内容
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/ struts-tags" %>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>
3.<head>中加入下列
<head>
<s:head theme="xhtml"/>
<sx:head parseContent="true"/>
</head>
4.页面中使用<sx:datetimepicker name="birthday" value="%{date}" displayFormat="yy-MM-dd" />
No tag "tree" defined in tag library imported with prefix="s"
原因:struts2.1.8 把struts2.0中的和ajax相关的,如tree,treenode 移动到了dojo中了
解决方法如下:
1. 到struts-2.1.8\lib下找到struts2-dojo-plugin-2.1.8.jar 复制到你的项目/WEB-INF/lib 下
2、在jsp页面中加入<%@ taglib prefix="sx" uri="/struts-dojo-tags"%>
3、将<s:tree label="XXXX" ></s:treer>改为<sx:tree label="XXXX" ></sx:treer>
也许这时你还会发现有个黄色的小警告,也许是你的标签中加入了 theme="ajax",去掉即可。
- No tag "" defined in tag library imported with prefix "s"
- No tag " " defined in tag library imported with prefix="s"
- s:datepicker No tag "datetimepicker" defined in tag library imported with prefix "s
- No tag "form" defined in tag library imported with prefix "s"
- No tag "datetimepicker" defined in tag library imported with prefix "s"解决
- No tag "datetimepicker" defined in tag library imported with prefix "s"
- struts2 No tag "datetimepicker" defined in tag library imported with prefix "s"
- No tag "datetimepicker" defined in tag library imported with prefix "s"
- No tag "datetimepicker" defined in tag library imported with prefix "s"
- No tag "datetimepicker" defined in tag library imported with prefix "s"
- /index.jsp(27,4) No tag "" defined in tag library imported with prefix "s"
- JSP编写过程用到Tag文件时遇到的报错记录No tag "" defined in tag library imported withprefix ...
- No tag "datetimepicker" defined 解决方法
- No tag "datetimepicker" defined 解决方法
- No tag "datetimepicker" defined 解决方法
- struts2.1.6 No tag "datetimepicker" defined解决方法
- strust2+No+tag+"datetimepicker"+defined+解决方法
- tag library
- js通用数据检测方法(只完成js端大体功能,随会追加php端代码)
- 个人学习,运维架构图
- iPhone中的info.plist文件
- mysql 性能优化
- ExtJs4.0 getEditor() 为空或不是对象
- No tag " " defined in tag library imported with prefix="s"
- 设置全屏模式
- 任务栏重叠标题设置
- 删除MySQL数据库
- UpdateModel 方法
- ./configure配置的参数 交叉编译 host build target的含义(转)
- The Streaming API for XML (StAX)
- swfobject.js,这个JS究竟有什么作用呢
- jasperreport+ireport学习笔记(待续)