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 are the life-cycle methods for a servlet?
What is java servlet?
Why jsp is better than servlet?
What is string tokenizer?
How do you configure a centralized error handler in servlets?
What is a generic servlet?
Tell us something about servletcontext interface.
What is meant by session? Tell me something about httpsession class?
What are the differences between servlet context vs servlet config?
What are the advantages of cookies?
How can we upload the file to the server using servlet?
Explain load on start-up and its importance?
Define the lifecycle for executing a jsp page.
What is the type of method for sending request from http server?
When should you prefer to use doget() over dopost()?