如何区分选中了哪个按钮
<form action="CheckLogin.jsp" method="post">
<H2 align="center">请输入用户名和密码</H2>
<table border="0" align="center" cellpadding="2" cellspacing="2">
<tr>
<td>用户名:</td>
<td><input type="text" name="username"/></td>
</tr>
<tr>
<td>密 码</td>
<td><input type="password" name="pwd"/></td>
</tr>
<tr>
<td></td>
<td><input type="submit" name="submit" value="提交"/></td>
<td><input type="submit" name="search" value="查找"/></td>
</tr>
</table>
</form>
跳转到CheckLogin.jsp后如何判断选中的是“提交”按钮,还是“查找”按钮
------解决方案--------------------
HTML code
<td><input type="submit" name="submit" value="提交"/></td>
<td><input type="submit" name="submit" value="查找"/></td>