struts2中的<sd:datetimepiicker>标签的实现

来源:互联网 发布:windows 网络编程 编辑:程序博客网 时间:2024/05/17 01:05

1.在JSP页面加入<%@ taglib prefix="sd" uri="/struts-dojo-tags"%> 

2.导入struts2-dojo-plugin-2.3.14包

3.在head标签中加入

<s:head theme="xhtml"/>    
<sd:head parseContent="true"/>

4.  <sd:datetimepicker label="生日" name="user.userBirthday" displayFormat="yyyy-MM-dd"></sd:datetimepicker>

5.效果如图:



原创粉丝点击