Difference between Include, Forward and sendRedirect in
Servlet?
Answer Posted / abilash
include: will include another file in our current file
forward: will forward the current request to the forwarding page
sendRediect: will call the next page 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 ? | 96 Yes | 13 No |
Post New Answer View All Answers
Explain the servlet context.
Write a program to show the functionality of doget and dopost method?
Why servlet is used as controller ? Not JSP? I want complete explation?
What are the two important api's in for servlets?
What is the difference between servlet and filter?
Define declaration.
What is the advantage of Servlets when compared with other server side technologies?
What is the need of servlet filters?
What do you mean by request dispatcher in servlet? Also explain its methods.
What is difference between cookies and httpsession?
What is the difference between the include() and forward() methods?
What is httpservlet and how it is different from genericservlet?
What’s the difference between genericservlet and httpservlet?
What are life cycle methods of a servlet?
How will you pass values from HTML page to the servlet?