TODAY JAVA SCHOOL

In java school, programming, design, computer general knowledge, web application, software, web services, social media, digital marketing, oops, concept of programming language, oops feature, console media, graphics medium, first programming, c, c ++ , Java, PHP, SQL, MySQL, HTML, HTML_5, J_query, JavaScript, Bootstrap, Framework, images with logos, examples, shared and explained.

https://www.amazon.in/b?node=26373545031&linkCode=ll2&tag=1234567801cdb-21&linkId=3b9882431b00409b44141e0344b35a15&language=en_IN&ref_=as_li_ss_tl

Breaking

Monday 27 April 2020

JSP Response Implicit Object In Java | JSP Response Implicit Object In Java In Hindi

JSP Response Implicit Object

In 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 object


index.html

                  <form action="welcome.jsp">  
                  <input type="text" name="uname">  
                  <input type="submit" value="go"><br/>  
                   </form>  


welcome.jsp

        
        <%   
       response.sendRedirect("http://www.google.com");  
        %>  


Output

download image of jsp response

Fig: JSP Response Object


No comments:

Post a Comment