一个表单的内容两个按钮分别提交到不同的jsp文件
直接贴代码吧
<form id="form1"  action="#" method="post">
<table border="1">
	<tr>
		<td>选择授权用户:</td>
		<td colspan="3"><select name="rpuserid">
		<%
			while(user.hasNext()){
				String[] struser=user.next();
		%>
			<option value=<%=struser[0]%> ><%=struser[1]%></option>
		<%
			}
		%>
		</select></td>
	</tr>
	<tr>
		<td>选择授权学生:</td>
		<td><select name="yuanxi">
			<%
				while(yuanxi.hasNext()){
					String[] stryuanxi=yuanxi.next();
			%>
				<option value=<%=stryuanxi[0]%>><%=stryuanxi[1]%></option>
			<%
				}
			%>
		</select></td>
		<td><select name="nianji">
			<%
				while(nianji.hasNext()){
					String[] strnianji=nianji.next();
			%>
				<option value=<%=strnianji[0]%>><%=strnianji[1]%></option>
			<%
				}
			%>
		</select></td>
		<td ><input type="submit" value="查询" ></td>
	</tr>
	<tr>
		<td></td>
		<td colspan="3"> 
			<%
				while(student.hasNext()){
					String[] strstudent=student.next();
			%>
				<input type="checkbox" name="rpstudentid" value=<%=strstudent[0]%>><%=strstudent[1]%>
			<%
				}
			%>
		</td>
	</tr>
	<tr>
	<td></td>
	<td colspan="3" align="center">
			<input type="submit" value="确认授权" >
			<input type="hidden" name="tijiaoyemian" value="shouquan">
	</td>
	</tr>	
</table>	
</form>
上面一个按钮想提交两个select的信息然后提取出数据显示出来,
第二个按钮想提交刚 提取的数据 和 select里面的数据 到另一个jsp保存,这代码应该怎么写啊
              
------解决方案--------------------<input type="submit" value="查询" > 
改成 
<input type="button"  onclick=" this.form.action='要提交页面.js';this.form.submit()  "  value="查询" > 
另个提交按钮也照这样改
 
------解决方案--------------------调用函数,参数设置两个不同的参数.