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

No tag "datetimepicker" defined in tag library imported with prefix "s"
原因:struts2.1.6 把struts2.0中的和ajax相关的,如datetimepicker,tree,treenode 都移动到了dojo中了
解决方法:
1、在jsp文件中加入<%@ taglib uri="/struts-dojo-tags" prefix="sx"%>和<sx:head/>
2、将<s:datetimepicker label="XXXX" name="XXXX"></s:datetimepicker>改为<sx:datetimepicker label="XXXX" name="XXXX">      
    </sx:datetimepicker>
3、将struts2-dojo-plugin-2.1.6.jar拷贝到/web-inf/lib下

用struts2.1.6的datetimepicker时,显示的时候月份从一月到八月都可以正常显示,而到九月,十月就乱码
解决办法:
在 <sd:head />中加入:extraLocales="UTF-8"
在 <sd:datetimepicker .../>中加入:language="UTF-8"

你可能感兴趣的:(No tag "datetimepicker" defined in tag library imported with prefix "s")