jsp传参数两小问题? if(del!=null && del.equals("del"))href="/servlet?action=del&id=<%=rs.getInt(1)%>" 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 ok了,谢谢。再问一个问题:<form id="form1" name="form1" method="post" action="servlet"><form id="form2" name="form2" method="post" action="servlet">不同的form发给同一servlet,servlet里怎么判断是哪个form发来的请求做相应的判断?根据id?name?怎么写? 看错应该是给每个表单的提交按扭设置不同的值再根据这个值来判断提交的是哪个form 在action="servlet"加上一个参数不就ok了? 楼上的意思是 action="servlet?id=1",action="servlet?id=2"在servlet里request.getParameter("id");判断id来区分是哪个form传来的值? weblogic中关于JMS事务控制的问题 门外汉求助 weblogic启动异常问题 struts(/jsf)+spring+hibernate好书推荐! 数据移植程序框架 如何在struts中的action forward到另一个action 求精通EJB(第2版)中文电子档 关于JBuilder中MSSQL2000在EJB设计时DataSource的连接问题?求救!!! 关于java接口 could not instantiate id generator错误,求大神一臂之力 ????奇怪的编码转换问题!!!! 从数据库查询得到的结果是null,为什么,99命啊!!!!!
再问一个问题:
<form id="form1" name="form1" method="post" action="servlet">
<form id="form2" name="form2" method="post" action="servlet">
不同的form发给同一servlet,servlet里怎么判断是哪个form发来的请求做相应的判断?
根据id?name?怎么写?
应该是给每个表单的提交按扭设置不同的值
再根据这个值来判断提交的是哪个form
在servlet里request.getParameter("id");判断id来区分是哪个form传来的值?