ITeye博客

No tag "datetimepicker" defined in tag library imported with prefix "s"

ottoliu · 2011-04-13 16:49 · struts · 企业架构 · Markdown

错误提示: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.中加入下列

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。