Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

What is the most efficient way of moving from one page (home page, index.html) to another?

user-image
Question ajoutée par Faten Almajaly
Date de publication: 2015/05/03
Pushpendra Chouhan
par Pushpendra Chouhan , Worked 6 months for my final year project (Jan 2014- June 2014) , Universal Informatics

Basically we can use requestDispatcher interface or sendRedirect() method for moving from one page to another. 

requestDispatcher interface is used to dispatch the request from one web page to another web page, within an application. It may be jsp,servlet or html.

It provides two methods: forward() and include().

sendRedirect() method is used to direct the request from one page to another which lies within the application or outside the application. It works at client side.

More Questions Like This