struts 2.1.6中显示日期时间选择框(datetimepicker)

代码:

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="/struts-yui-tags" prefix="yui" %>
<%@ taglib uri="/struts-dojo-tags" prefix="sx" %>
<html>
<head><sx:head/>
<title>test</title>
</head>
<body>
<s:fielderror></s:fielderror>
<s:form action="test_handle" name="testform" theme="xhtml">
<sx:datetimepicker name="datepicker" type="date" displayFormat="yy-MM-dd" label="Date" value="%{'07-11-11'}"></sx:datetimepicker>
<s:textfield key="name" value="%{'duanli'}" label="Name"/>
<s:submit></s:submit>
<s:text name="%{name}"></s:text>
</s:form>
</body>
</html> 

 效果:

 

你可能感兴趣的:(html,struts,XHTML,dojo,yui)