What is difference between Forward() and sendRedirect()
methode?

Answer Posted / jack

In the case of forward() the server will redirect to the
next page but in the case of sendRedirct() the server will
inform the browser to redirect the url to the next page.

Is This Answer Correct ?    43 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why the concept of single thread model interface is used?

555


Why do we have servlet wrapper classes?

580


How does tomcat servlet container work?

592


What are the functions of Servlet container?

610


What is Client-Server Computing?

1899






What exactly is a servlet?

547


What are the kinds of http requests?

611


What are the types of an http request?

585


What is the use of request dispatcher interface?

571


What is Servlet API used for connecting database?

621


What is the requirement of servlet config and servlet context implemented and how are they implemented?

543


How can a servlet be used to generate plain text instead of html?

548


What is servletconfig?

547


What is the procedure for initializing a servlet?

547


What are the different methods involved in the process of session management in servlets?

671