Difference between Include, Forward and sendRedirect in
Servlet?
Answer Posted / shyam babu
include: will include the output of another resource(jsp,
servlet etc )in our current file. and response is generated
from current file
forward: will forward the current request to the forwarding
page & response is generated from forwarding opage
sendRediect: will redirect to the page specified in the
sendRedirect method but it won't send the
same request to the new page but forward will send the same
request to the new page
| Is This Answer Correct ? | 8 Yes | 7 No |
Post New Answer View All Answers
What is the process to implement doget and dopost methods?
What is the use of httpservletrequestwrapper and httpservletresponsewrapper?
What is the difference between forward () and sendredirect () functions in servlet? Explain
What is servlet used for?
What are the uses of servlets?
Is it possible to have a constructor inside the servlet?
How native code can be used in a servlet?
Hi frnd can i any one kindly can post for me portlet,hibernate and spring example application and with flow explantion configuration using Jdeveloper.and related links ar tutorials kindly please send me .its urgent for me .thanks in advance...........else can any one send to kondaiah.goddeti@gmail.com
What is difference between jsp and servlet?
What is meant by Servlet? What are the parameters of service method?
What are the steps involved in placing a servlet within a package?
What if we pass negative value in load-on-startup?
Explain the difference between jsp and servlet?
Why doesn’t a servlet include main()? How does it work?
What is the use of java servlet api?