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
What is servlet attributes and their scope?
What is the difference between Servlets and Applets?
Explain mvc pattern.
What is a java servlet?
What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?
What is the inter-servlet communication?
Who is responsible to create the object of servlet?
What are the different methods involved in the process of session management in servlets?
What do you mean by servlet context?
In the servlets, we are having a web page that is invoking servlets ,username and password? which is checks in database? Suppose the second page also if we want to verify
Which is the methods of generated servlet?
Once the destroy() method is called by the container, will the servlet be immediately destroyed? What happens to the tasks(threads) that the servlet might be executing at that time?
what do you understand by url rewriting?
What is a deployment descriptor?
How the JSP file will be executed on the Server side?