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

What is lazy loading and what is Generic Servlet Class?

607


What is the difference between the servlets and cgi programs?

549


What are the differences between servlet context vs servlet config?

575


What is the process to implement doget and dopost methods?

544


What do you mean by cgi?

529






What is cgi?

594


Explain Action Servlet?

621


What's the difference between servlets and applets?

561


What is servlet and its types?

555


Can we use the constructor, instead of init(), to initialize servlet?

580


What is servlet lazy loading?

691


Is tomcat a servlet container?

573


What is the difference between encodeRedirectUrl and encodeURL?

601


what is the different between a servlet and a cgi? Why do you go for servlet rather than cgi?

568


What is Client-Server Computing?

1895