为什么我的servlet接受select的值始终为空
展开全部
<td width=83是否通过</td
<td width=59提交</td
<td width=101备注</td</tr<% ArrayList checkinfo=(ArrayList)request.getAttribute(checkinfo);
if(checkinfo!=null){for(int i=0;i<checkinfo.size();i++){BusinessBean info=(BusinessBean)checkinfo.get(i);%<tr bgcolor=#FFFFFF<td<%=info.getVPhoneNum() %</td
<td<%=info.getVName()%</td
<td<a href=listening.jsp?url=<%=info.getVRecordUrl()%查询录音</a</td
<td<select name=checkpass<option value=xuanze 请选择</option<option value=yes是</option<option value=no否</option</select</td
<td<input type=button class=btn1_mouseout onmouseover=this.className='btn1_mouseover'onmouseout=this.className='btn1_mouseout' value=提交</td
<td<%=info.getVRemark() %</td</tr<%}}%</table</form上面是JSP页面
下面是servlet
String phone=request.getParameter(phone);
String pass=request.getParameter(checkpass);
System.out.println(phone);
System.out.println(pass);
LoginService submitcheck=new LoginServiceImpl();
if(pass==xuanze){out.println(<script language=\javascript\);
out.println(alert(\请选择是否通过稽查!\));
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询