Find centralized, trusted content and collaborate around the technologies you use most. <%@ page language="java" contentType="text/html; charset=UTF-8" It sends a temporary redirect response to the client using the specified redirect location URL. The page redirection also same as redirection whenever the web document or pages or any files to be deployed in the servers regarding file transfers from one location into another location that time we can maintain the load balancer in the servers regarding more number of users accessing the web page at the same time. When the browser requests a webpage, a lot of information is sent to the webserver, and the webserver responds after processing the HTTP request. sendRedirect () sends a redirect response back to the client's browser. What is the difference between JSF, Servlet and JSP? For instance, here is the signature. Which I have tried in my current code, and it works. response.sendRedirect("error.html"); RequestDispatcher is used to dispatch request to the resource run in same web applications, and sendRedirect() can be used to redirect client user to . An example of data being processed may be a unique identifier stored in a cookie. This would take you to the given URL http://www.photofuntoos.com.