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 is the directory structure of web application?
What are the uses of servlet and what is servlet chaining?
How servlets are deployed in java?
What is a generic servlet?
Can we use the constructor, instead of init(), to initialize servlet?
Is java servlet still used?
How does tomcat servlet container work?
What is meant by cookies?
Write the code to get the server information in servlet.
What is the procedure for initializing a servlet?
Why is httpservlet declared abstract?
What is java servlet?
What are the functions of Servlet container?
Write a servlet to upload file on server.
Differentiate between the get and post method