<%@ page language= "java" contenttype= "text/html; Charset=utf-8 "
pageencoding= "UTF-8"%>
<! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" "HTTP://WWW.W3.ORG/TR/HTML4/LOOSE.DTD" >
<meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 ">
<title>Redirect</title>
<body>
<%//Page Redirection program slices
String URL;
Url=request.getparameter ("goaddress");
if (url!=null)
{
Response.sendredirect (URL);
}
%>
<form name= "Forml" action= "redirect.jsp" method= "POST" >
Page redirection:
<select name= "goaddress" onchange= "Javascript:form1.submit ()" >
<option value= "" >======== Please select ========</option>
<option value= "http://www.csai.cn" > China system analyst </option>
<option value= "http://www.51cmm.com" > Software engineering expert network </option>
<option value= "http://www.hnii.gov.cn" > Information Office of Hunan Province </option>
<option value= "http://www.temco.com.cn" > Tiangong Information Technology Co., Ltd. </option>
</select></form>
</body>
Java Web Experiment redirect.jsp