What is difference between Forward() and sendRedirect()
methode?
Answer Posted / lala mishra
i will tell the conclusion of all
1. in case of forword() server will not inform client
2. in case of forword the same request will be sent to other
resourse so that request attribute will not distroy.
the opposite is for sendRedirect.
| Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
What is called servlet container?
Why do we have servlet filters?
What are the important functions of filters?
What are the life cycle methods of a servlet?
Explain request dispatcher and its methods.
What is a servlet context?
Why doesn’t a servlet include main()? How does it work?
What are the uses of servlets?
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 ?
How is an application exception handling is done using a servlet?
If a servlet is not properly initialized, what exception may be thrown?
Can you explain in detail 'javax.servlet' package?
How do servlets work?
What if you need to span your transaction across multiple servlet invocations?
What is difference between the HTTP Servlet and Generic Servlet? Explain about their methods and parameters?