struts2action怎么得到表单中的数据
展开全部
name 对应好就行了
<form action="historyValueByParam.action" class="form-inline" role="form">
area:
<select id="areaList" name="areaId" style="width:80px; height:27px;" onchange="areaToElement()">
</select>
element:
<select name="type" id="dataInfoList" class="form-control" style="width: 140px;">
</select>
from:
<div class="form-group">
<input name="start" class="form-control" id="exampleInputEmail2"
class="Wdate" type="text" onfocus="this.blur()" onclick="WdatePicker()"></input>
</div>
to:
<div class="form-group">
<input name="end" class="form-control" id="exampleInputPassword2"
class="Wdate" type="text" onfocus="this.blur()" onclick="WdatePicker()"></input>
</div>
<button type="submit" class="btn btn-default">Query</button>
</form>
private String type;
private Timestamp start;
private Timestamp end;
private Integer areaId;
// set get 方法
这样就行了
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询