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
Can filter be used as request or response?
How do we translate jsp?
What is the requirement of servlet config and servlet context implemented and how are they implemented?
what is servlet chaining?
How do you invoke a Servlet? What is the difference between doPost method and doGet method?
What is the difference between sendredirect() and forward() in a servlet?
What is the process to implement doget and dopost methods?
What is meant by Servlet? What are the parameters of service method?
What are the servlet events?
What is webservlet?
Can you refresh servlet in client and server-side automatically?
Why do we need servlet filter?
What do you mean by session tracking?
What is war file?
Difference between java beans & servlets?