What is <jsp:forward> action?

By this you can foreward from one jsp to another(jsp/servlet). The defined URL must have same context as the current page.
<jsp:forward page=”handleIt.jsp”/>
It is same as RequestDispatcher.forward(“url”);
With <jsp:forward> the buffer is cleared before the forward. In other words anything written in the response is thrown out.

No comments:

Post a Comment