What is difference between Forward() and sendRedirect()
methode?

Answer Posted / raghunath bj

Jsp forward will be used to send some sort of response to
any webresource (it can be a servlet or a jsp) and
sendRedirect will be used in the case of response to be
sent to the next view or Jsp.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can the referrer and the target urls be used in servlet?

534


Describe servlet?

582


What is servlet and its life cycle?

572


What is the difference between Server and Container?

621


If my browser does not support cookie, and my server sends a cookie instance what will happen?

655






What is the difference between encodeRedirectUrl and encodeURL?

607


Who is responsible to create the object of servlet?

722


What are advantages of servlets over cgi?

632


What is a servlet engine?

546


What is the servletconfig object?

534


How is the get () method different from the post() method?

539


What is java servlet?

612


How to make sure a servlet is loaded at the application startup?

560


Explain url encoding?

521


How to get ip address in jsp login page and how to validate like 127.1.0.1 all should not be greater than 255

2920