What is forward() and include() of servlets
RequestDispatcher interface?

Answer Posted / ravikiran

forward will make the flow into a different page,where as
include mechanism will include the page to the current
response and continues the flow.
Note:the forward and include should be called before the
response is committed for example before the call to flush()
or flushBuffer() or the write method in the response stream

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define the servlet mapping.

620


What is new in ServletRequest interface ? (Servlet 2.4)

661


What are the jobs performed by servlets?

669


What are the new features added to servlet 2.5?

697


How can you create a session in servlet?

677






What are the uses of servlet

709


What is cgi?

678


What is the default http method in the servlet?

866


Describe servlet?

656


What’s the difference between genericservlet and httpservlet?

620


What is Client-Server Computing?

1975


Explain the architechure of a servlet?

693


What are the steps that are required to handle the multi-threading?

691


What are the types of Session Tracking ?

727


How to get the actual path of servlet in server?

821