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

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


原因:新版jar包  把struts2.0中的和ajax相关的,如datetimepicker,tree,treenode 都移动到了dojo中了

解决方法:
1、在jsp文件中加入<%@ taglib uri="/struts-dojo-tags" prefix="sd"%>
2、将<s:datetimepicker label="XXXX" name="XXXX"></s:datetimepicker>
改为
<sd:datetimepicker label="XXXX" name="XXXX">      
</sd:datetimepicker>
3、将struts2-dojo-plugin-2.1.*.jar拷贝到/web-inf/lib下


 

你可能感兴趣的:(java,struts2)