What is difference between Forward() and sendRedirect()
methode?
Answer Posted / mohan
I want to add one more point to the above answers, that is,
in case of Forward() the attributes related to the request
will remain same, as it is inside the server, whereas
incase of senRedirect(), it results in a new request so the
previous attributes of the request will be lost...
Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
Can we get PrintWriter and ServletOutputStream both in a servlet?
Can filter be used as request or response?
What is the
What is a web application and what is it’s directory structure?
When a client request is sent to the servlet container, how does the container choose which servlet to invoke?
What is difference between ServletResponse sendRedirect() and RequestDispatcher forward() method?
what is multiple server?
What are the functions of an intercepting filter?
Which HTTP method is non-idempotent?
Is that servlet is pure java object or not?
What are the differences between servlet context vs servlet config?
Explain the difference between servletconfig and servletcontext in servlet?
Can we use the constructor, instead of init(), to initialize servlet?
What is servlet in web technology?
What is called servlet mapping?