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
How is the get () method different from the post() method?
Differentiate between the print writer and servlet output stream?
What is URL Encoding?
What is the difference between jsp and servlet life cycle?
What is the use of send redirect () method?
What is the advantage of Servlets when compared with other server side technologies?
Explain mvc pattern.
Can you use javascript in servlets?
If my browser does not support cookie, and my server sends a cookie instance what will happen?
What is webservlet?
What is the web server used for running the Servlets?
If some new data has entered the database, explain how can a servlet refresh automatically?
In the servlets, we are having a web page that is invoking servlets ,username and password? which is checks in database? Suppose the second page also if we want to verify
How will you pass values from HTML page to the servlet?
What are the advantages of servlets over traditional cgi?