What is difference between Forward() and sendRedirect()
methode?
Answer Posted / jack
In the case of forward() the server will redirect to the
next page but in the case of sendRedirct() the server will
inform the browser to redirect the url to the next page.
| Is This Answer Correct ? | 43 Yes | 2 No |
Post New Answer View All Answers
Explain the steps involved in placing a servlet within a package?
Once the destroy() method is called by the container, will the servlet be immediately destroyed? What happens to the tasks(threads) that the servlet might be executing at that time?
What are the exceptions thrown by servlets? Why?
What are some advantages of storing session state in cookies?
What are the disadvantages of storing session state in cookies?
How can we invoke another servlet in a different application?
What is URL Encoding?
How to commuincate between an applet and a servlet?
Explain get and post.
What is load-on-startup in servlet?
What is servlet name in web xml?
What is difference between ServletResponse sendRedirect() and RequestDispatcher forward() method?
What is servlet invoker?
What are its drawbacks of cgi?
What do you mean by singlethreadmodel interface?