This week's book giveaways are in the Refactoring and Agile forums. We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line! See this thread and this one for details.
Can anybody give me a real time scenario where can i use forward() method and in which situation i should go for the include()method for redirection
posted 7 years ago
We use forward method to navigate the request and response object to another resouce on the same server. suppose we want to assign a jsp to display the contents we can navigate from the servlet to jsp using forward method. here servlet is reponsible for data processing and jsp is for display (MVC pattern follows this)