我的html 代码如下:WdatePicker时间控件
<td class="controlcontent" width="5%" id="mouth" style="display:none">
<input type="text" id=beginCreateDate1 name="entitySearch.beginCreateDate" class="Wdate" onClick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM',minDate:'2008-02',maxDate:'2118-12'})"
onchange="changeDate1();" value="<fmt:formatDate pattern='yyyy-MM' value='${entitySearch.beginCreateDate}'/>">
<span id="beginCreateDateTip"></span>
</td>
java后台编程,采用SSH框架,Input标签的value能取到值,但是${entitySearch.beginCreateDate}不能取到值,beginCreateDate是date类型。希望大侠帮忙……
struts2 action里面的get set方法写了吗
写了,如果时间格式是dateFmt:'yyyy-MM-dd' 就能取到