?? sendredirectexample1.jsp
字號(hào):
<%@ page contentType="text/html;charset=gb2312"%>
<html>
<body>
<%//頁(yè)面重定向程序片
String url;
url=request.getParameter("goaddress");
if(url!=null)
{
response.sendRedirect(url);
}
%>
<form name="form1" action="sendRedirectExample1.jsp" method="post" >
頁(yè)面重定向:
<select name="goaddress" onchange="javascript:form1.submit()">
<option value="">========請(qǐng)選擇========</option>
<option value="http://www.csai.cn">中國(guó)系統(tǒng)分析員</option>
<option value="http://www.51cmm.com">軟件工程專家網(wǎng)</option>
<option value="http://www.hnii.gov.cn">湖南省信息辦</option>
<option value="http://www.temco.com.cn">天工遠(yuǎn)科信息技術(shù)有限公司</option>
</select>
</form>
</body>
</html>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -