difference between sendredirect,forward and url rewritting

Answer Posted / ravikiran

forward is a teqnique used to delegate the response to a new
resource and happens on the server side.And we cann't
forward a response to a resource residing on different machine.
Sendrediredt is the techinque used to delegate the response to
other webapplication,which may reside on different machine
as well.
Url rewriting is a technique used for session tracking when
the cookies are disabled,to transfer the session id back and
forth between the clent and the server

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is cookie? Why is cookie used?

582


What’s the difference between forward() and sendredirect() methods?

574


How many servlet objects are created?

565


What’s the difference between sendredirect and forward methods

564


Why do we have servlet filters?

600






Which method of the httpservletrequest object is used?

569


What's the advantages using servlets than using cgi?

556


What is the difference between servlet and jsp?

597


What is the servletconfig object?

534


What do you mean by httpservlet?

563


What is the difference between get and post methods?

599


Define the life cycle of a servlets.

572


Write the code to get the server information in servlet.

572


How do I use cookies to store session state on the client?

535


How the JSP file will be executed on the Server side?

643