Master java skills

response Implicit Object

response implicit object is of type HttpServletResponse. It represents http response object.

In the below example, we will redirect the response from introduction.jsp page to another page

index.html

<html>
  <body>
    <form action="introduction.jsp">  
      <input type="text" name="username">
      <input type="text" name="email">  
      <input type="submit" value="go"><br/>  
    </form>  
  </body>
</html>

introduction.jsp

<html>
  <body>
    <%   
      response.sendRedirect("https://www.javatrainingschool.com");  
    %>  
  </body>
</html>