Interface javax.servlet.http.HttpServletResponse sendRedirect 
 public abstract void sendRedirect(String location) throws IOExceptionSends a temporary redirect response to the client using the specified redirect location URL. The URL must be absolute (for example, https://hostname/path/file.html). Relative URLs are not permitted here. Parameters: 
location - the redirect location URL 
Throws: IOException 
If an I/O error has occurred. 不知道是不是你想要的