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
Which exception is thrown if the servlet is not initialized properly?
What are the drawbacks of cgi?
Why the concept of single thread model interface is used?
What are the common methods that are included in the http servlet class?
What is meant by a web application
Why servlet is used as controller ? Not JSP? I want complete explation?
Tell us something about servletconfig interface.
What are the types of an http request?
What is difference between ServletResponse sendRedirect() and RequestDispatcher forward() method?
Servlet is pure java object or not?
Define the lifecycle for executing a jsp page.
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()?
What is meant by servlet? What are the parameters of the service method?
A client sends requests to two different web components. Both of the components access the session. Will they end up using the same session object or different session ?
What is meant by a servlet?