产生日期方式

【一】
用OGNL表达式
<s:datetimepicker  name='studentBean.stuBirthDate' id="stuBirthDate" cssStyle="css_xhtml" value="" staticDisplay="" ></s:datetimepicker>
<s:datetimepicker id="time1" name="time1" toggleType="explode" value="today" />

【二】
用javascript使用
<script type="text/javascript">dojo.require("dojo.widget.DatePicker");</script>
<div dojoType="dropdowndatepicker" id="stuBirthDate" name="dojo.studentBean.stuBirthDate" inputName="studentBean.stuBirthDate" saveFormat="rfc">
 </div>

你可能感兴趣的:(JavaScript,java,dojo)