datetimepicker标签在2.16已经不能像以前一样直接用了,须引入新的jar包
1.
struts2-dojo-plugin-2.1.6.jar引入到自己的项目中。
2.jsp中加入如下标签
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>
3. <head>中加入以下标签
<head> <sx:head parseContent="true"/> </head>
4.页面中使用
<sx:datetimepicker name="birthday" lable="请求时间" displayFormat="yy-MM-dd" />