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
What is called Scriptlet?
Why is init() method is used in servlets?
What are the advantages of Servlet over CGI?
How do you invoke a Servlet? What is the difference between doPost method and doGet method?
What do you mean by url pattern in servlet?
Explain mvc pattern.
How the typical servlet code look like ?
When Servlet is unloaded?
What are the drawbacks of cgi?
Which interface should be implemented by all servlets?
How to get the current httpsession object?
What is the difference between CGI and Servlet?
What are the different mode that servlets can be used?
Write a servlet to upload file on server.
What is difference between the HTTP Servlet and Generic Servlet? Explain about their methods and parameters?