您的位置:首页 > 其它

form表单提交

2015-12-24 14:58 267 查看
<form method="post" id="formSub" action="app/tiJiao.chtml"   style="display: none" >
<input type="text" id="zhouqi" name="zhouqi" value="${zhouqi}" 	  style="    display: ; "  />
<input type="text" id="productId" name="productId" value="${product.id}" style="    display: ;"  />
<input type="text" id="zongjia" name="zongjia" value="${allMoney}" style="    display: ;"  />
<input type="text" id="startTime" name="startTime" value="${startTime}" style="    display: ;"  />
<input type="text" id="endTime" name="endTime" value="${endTime}" style="    display: ;"  />
</form>
function tonextpage(){
$("#formSub").submit();
}


@RequestMapping(value = "app/tiJiao")
public String toTiJiaoDingDan(HttpServletRequest request, HttpServletResponse response, Model model,
@RequestParam(value = "startTime", required = false) String startTime,
@RequestParam(value = "endTime", required = false) String endTime ,
@RequestParam(value = "orderId", required = false) String orderId
) throws Exception {
String productId = request.getParameter("productId");// APPid
String zongjia = request.getParameter("zongjia");// 总价
String zhouqiString = request.getParameter("zhouqi");// 总周期
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: