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
what do you understand by url rewriting?
Explain the architechure of a servlet?
When Servlet is unloaded?
What are the benefits of using servlet over cgi?
What's the difference between authentication and authorization?
How to commuincate between an applet and a servlet?
Why do you use session tracking in httpservlet?
Can you use javascript in servlets?
Explain request dispatcher and its methods.
What is the dispatcher servlet?
What is the difference between Server and Container?
What is the life-cycle of servlets?
What is the process to implement doget and dopost methods?
Which application server is best for java?
What are the servlet events?