What is forward() and include() of servlets
RequestDispatcher interface?
Answer Posted / katamraju
Forward():By using forward() method of RequestDispatcher ,ew
can forward a request to a another resource(i.e
servlets,jsp,html....),at finally we can see only called
resource output(i.e second resource output )
For exm. we have two servlets,(servlet1 and servlet2) we are
forwarding request from servlet1 to servlet2, in this case
we can see only servlet2 output.
include():By using include() method of RequestDispatcher we
can forward a request from servlet12 to servlet2 ,in this
case we can see both outputs(i.e servlet1 and servlet2).
in both case single request and single response.
Is This Answer Correct ? | 41 Yes | 9 No |
Post New Answer View All Answers
Why is http protocol called as a stateless protocol?
What is servlet and its types?
When a servlet accepts a call from a client, it receives two objects. What are they?
What is the difference between Server and Container?
What is the procedure of invoking different servlet in a different application?
What is the use of servletconfig interface?
What does the term localization refer to?
Explain the servlet filter.
Explain web application directory arrangement?
What do you mean by httpservlet?
What are session variable in servlets?
What is servlet looping or chaining?
how to link html file to sevlet file.one name is textbox,c&c++ is cheakbox,bc&mca is radio button and one submit buttonis ok why in this programme use in servelt file
What are the differences between the servletconfig interface and the servletcontext interface?
Explain the lifecycle of a servlet?