|
发表于 2020-2-15 18:30:01
|
显示全部楼层
怎么能在客户端操作服务端对象呢?改成这样的
<%@ page language="java" contentType="text/html;charset=gb2312"%>
<form method="post" name="form3" action="action.asp"> /**提交到action*/
<tr>
<td>
<input name="ddfind" type="radio" value="订单查询" checked="checked" id="2" />订单查询
<input name="ddfind" type="radio" value="合同查询" id="3"/>合同查询
</td>
</tr>
</form>
action.jsp
<%
String nowValue=request.getParameter("ddfind"); //取得ddfind的值
String tempFile=nowValue.equals("订单查询")?"zy_info_10.jsp":"contract_search.jsp";
response.sendRedirect tempFile;
%> |
|