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 are the different ways we can maintain state between requests?
What do you mean by cgi in servlet?
When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?
Explain load on start-up and its importance?
Can a jsp be called using a servlet?
Which httpsession object is used to view and manipulate information about a session?
Explain the differences between jsp and servlet.
Explain in brief the directory structure of a web application?
Which java framework is most popular?
What is httpservlet and how it is different from genericservlet?
Describe some assignments that are executed by servlet container?
Is servlet a framework?
What do you mean by chaining in servlet?
How do you invoke a Servlet? What is the difference between doPost method and doGet method?
what do you understand by url rewriting?