HTML中:
方法1:
- <meta:http-equiv="refresh" content="intN;URL">
方法2:
- <form name=abc method=get action="url">
- ......
- form>
JavaScript中:
方法1:
window.location.href = "URL";
方法2:
window.navigate("URL");
方法3:
window.history.go( intN ); window.history.back( ); window.history.forward( );
方法4:
window.location.replace( "URL" ); window.location.reloade(true);
JSP中:
方法1:
response.setHeader("refresh","intN;URL") ;
方法2:
response.redirect("URL");
方法3:
response.sendRedirect("URL");
方法4:
- <jsp:forward page="url">
<jsp:forward page="....."></jsp:forward>
Servlet中:
方法1:
actionMapping.forware("forward-name");