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 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by a servlet?

594


What methodology can be followed to store more number of objects in a remote server?

1811


What is java servlet session?

520


What are the key methods that are involved in processing of http servlets?

618


What exactly is a servlet?

537






Explain mvc pattern.

584


Does servlet have main method?

678


What is the difference between Difference between doGet() and doPost()?

752


List the Different types of servlet?

573


Explain load on start-up and its importance?

590


What is a java servlet?

548


What is url encoding and url decoding

578


Explain the difference between a web server and a web container?

504


Is servlet synchronized?

595


What do you mean by default initialization in java servlet?

596