Integer.parseInt问题?
同一jsp页面代码
<form id="select" name="select" method="post" action="">
<label>关键字:
<input name="select" type="text" id="select" />
</label>
<label>条件:
<select name="select2" size="1">
<option value="xh">学号</option>
</select>
</label>
<label>
<input type="submit" name="Submit" value="查询" />
</label>
</form>
<%int xuehao = 0;
xuehao = Integer.parseInt(request.getParameter("select"));%>
请求本页面时,出现异常:
java.lang.NumberFormatException: null
java.lang.Integer.parseInt(Integer.java:415)
如何解决?