difference between sendredirect,forward and url rewritting

Answer Posted / md. abid hossain

Both SendRedirect and forward is used to forward the
request to another resource. In case of forward() container
does not report to the browser,it is happend within the
container..so objects which are stored in request is not
lost..bt in sendredirect coantainer report to browser and a
new url is displayed..so objects which are stored in
request is lost..
URL rewriting is technique of session tracking.

Is This Answer Correct ?    14 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

List out the difference between ServletConfig and ServletContext?

592


What is the life-cycle of servlets?

626


Describe in brief RequestDespatcher?

586


What is Request Dispatcher?

788


Describe some assignments that are executed by servlet container?

572






What is the use of httpservletrequestwrapper and httpservletresponsewrapper?

534


Explain how to improve Servlet Performance?

592


Difference between GET and POST?

700


What are different Authentication options available in Servlets.

561


Which exception is thrown if the servlet is not initialized properly?

579


Why doesn’t a servlet include main()? How does it work?

624


What are the different methods involved in the process of session management in servlets?

657


How to get the IP address of client in servlet?

618


What are the uses of servlet

625


What are some disadvantages of storing session state in cookies?

582