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

Explain web container.

789


How will two or three servlets interact or communicate with each other?

1150


When should you prefer to use doget() over dopost()?

840


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

728


What is difference between GenericServlet and HttpServlet?

751


What do you mean by httpservlet?

756


What is cookie in servlet?

776


What mechanisms are used by a Servlet Container to maintain session information?

885


How can we create deadlock situation in servlet?

1066


What are the steps that are required to handle the multi-threading?

853


What's the architecture of a servlet package?

739


How to get the server information in a servlet?

888


What are the different methods involved in generic servlet?

805


Define servlet mapping?

902


Why is it that we can't give relative URL's when using ServletContext.getRequestDispatcher() when we can use the same while calling ServletRequest.getRequestDispatcher()?

840