Difference between Include, Forward and sendRedirect in
Servlet?
Answer Posted / saikiran
main difference between include forwared is
pathelements:
-------------
pathelements are not available to the sended servlet
that are to be available to the other servlet in the c
ase of forward.
incase of include both pathelements are available to
the both servlets.
Response Generation:
--------------------
in the response generation forward forwarded servlet
message will be printed
eg:
two servlets ser1 and ser2
ser1 forwarded to ser2 then ser2 messages will be
displayed not by ser1
in case of include both of them
Is This Answer Correct ? | 8 Yes | 11 No |
Post New Answer View All Answers
Define the lifecycle for executing a jsp page.
What are session variable in servlets?
How do you communicate in between Applets and Servlets?
What's the architecture of a servlet package?
Tell us something about servletcontext interface.
What exactly is a servlet?
When a servlet accepts a call from a client, it receives two objects. What are they?
What are the kinds of http requests?
Describe the phases of servlet lifecycle?
Explain the difference between a web server and a web container?
What is servlet and its use?
Whether thread can be used in servlets?
What do you mean by the servlet chaining?
How can we achieve transport layer security for our web application?
What is context in servlet?