jsp中from提交数据后台怎么获取出来啊!!!在线等 急急急!!!!!!

l990178943 2016-04-29 11:23:19
<form action="" method="POST" id="form1" name="form1">
<ul class="box-margin" style="width:100%; overflow:hidden">
<s:iterator value="#request.list" var="m" status="n">
<li class="box-style1 pad2 botttom-border" >
<div>
<div class="box-style8 left-ft" style="float:left">商品名称</div>
<span style="display:none" name="billId"><s:property value='#m.wineKeepId' /></span>
<div class="box-style8 right-ft color-ft11" style="float:right"><span><s:property value='#m.itemName' /></span>x<s:property value='#m.itemQty' /></div>
</div>
<div class="color-ft3 box-margin9">
<div class="box-style8 left-ft size-ft4 " style="float:left">存酒日期:</div>
<div class="box-style8 right-ft size-ft4 " style="float:right"><s:property value='#m.billDate'/></div>
</div>
<div class="color-ft3 box-margin9">
<div class="box-style8 left-ft size-ft4 " style="float:left">失效日期:</div>
<div class="box-style8 right-ft size-ft4 " style="float:right"><s:property value='#m.expireDate' /></div>
</div>
<button style="width:30px;height:28px;" onclick="jian()">-</button><input type="text" size="2" value="0" id="a"><button style="width:30px;height:28px;" onclick="jia()">+</button>
</li>
</s:iterator>
</ul>
<div >
<div class="color-ft2 color-bg1" style=" width:36%;height:54px; line-height:54px; float:right;" onclick="quwine()">取酒</div>
</div>
</form>


我在后台分别要获取到:wineKeepId itemQty billDate expireDate 怎么获取哦 !!!
...全文
841 5 打赏 收藏 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
fjfjfj 2016-04-29
  • 打赏
  • 举报
回复
网页里这样: <form method="post" action="abc.jsp"> <input type="text" name="wineKeepId"> <input type="text" name="itemQty"> <input type="text" name="billDate"> <input type="text" name="expireDate"> <input type="submit" value="提交" class=""> </form> abc.jsp: (jsp表单接收页这样:) String wineKeepId=request.getParameter("wineKeepId"); String itemQty=request.getParameter("itemQty"); String billDate=request.getParameter("billDate"); String expireDate=request.getParameter("expireDate"); 第二种方法是:你把这些值拼串、ajax提交到后台
l990178943 2016-04-29
  • 打赏
  • 举报
回复
from提交的 后台不能获取出来么 !!!!!!
风中的少年 2016-04-29
  • 打赏
  • 举报
回复
组装成json向后台传。。。。。。。。。。。
珍一世相守 2016-04-29
  • 打赏
  • 举报
回复
<form action="" method="POST" id="form1" name="form1">这行的action="这里写你后台要获取数据的action地址"
l990178943 2016-04-29
  • 打赏
  • 举报
回复
提交是到Action里 用的是SSH 怎么通过ajax传到后台哦

87,984

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧