91-9990449935 0120-4256464 |
3) JSP response implicit objectIn JSP, response is an implicit object of type HttpServletResponse. The instance of HttpServletResponse is created by the web container for each jsp request. It can be used to add or manipulate response such as redirect response to another resource, send error etc. Let's see the example of response implicit object where we are redirecting the response to the Google. Example of response implicit objectindex.html<form action="welcome.jsp"> <input type="text" name="uname"> <input type="submit" value="go"><br/> </form> <% response.sendRedirect("http://www.google.com"); %> OutputOther topics in JSP implicit ObjectsExample of Request implicit Object Example of config implicit object Example of application implicit object Example of session implicit object Example of pageContext implicit object Example of page implicit object Example of exception implicit object |