• +91 9723535972
  • info@interviewmaterial.com

Servlet Interview Questions and Answers

Question -
Why do we use sendredirect() method?



Answer -

The sendredirect() method basically works at the client-side. It is used to redirect the response to another resource like Servlet, JSP, HTML.

The syntax for sendredirect() method is as follows:

void send Redirect(URL);
Example:

response.sendredirect(“http://www.google.com”);

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners