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

What is the difference between servlet and jsp?

596


Difference between get and post in java servlets?

542


What is cgi?

594


What are Servlets?

596


Why is init() method is used in servlets?

554






If some new data has entered the database, explain how can a servlet refresh automatically?

735


What is load-on-startup in servlet?

580


What do you mean by cgi and what are its drawbacks?

528


Can filter be used as request or response?

540


Define the life cycle of a servlets.

572


What are the mechanisms used by a servlet container for maintaining session information?

562


How we can get ip address of client in servlet?

535


How do servlets work?

532


What do you mean by deployment descriptor?

551


What is dispatcher servlet?

555