1.在2.1.6版本中不能直接这样使用了,将datetimepicker移除了。 原因是此标签调用了dojo的datetimepicker的库。
所以现在使用的时候首先要导入一个库。struts2-dojo-plugin-2.1.6.jar
2.然后还要设置dojo的taglib
<%@ taglib prefix="sd" uri="/struts-dojo-tags" %>
同样也需要对theme进行设置
<s:head theme="xhtml"/> <sd:head parseContent="true"/>
3.上面的设置在head标签中。 然后使用<sd:datetimepocker></sd:datetimepocker>就可以实现了。
转载请注明原文地址: https://ju.6miu.com/read-970525.html