Subject: Solution with INCLUDE
Author: WebSpider
In response to: Include vs Redirect
Posted on: 09/30/2010 03:11:38 PM
On the page service_A.jsp:
if(failed){
request.setAttribute("request_attr", "request_attr_value");
session.setAttribute("session_attr", "session_attr_value");
request.getRequestDispatcher("service_B.jsp").include(request, response);
}else{
...
}
>
> On 09/30/2010 03:06:50 PM
WebSpider wrote:
Here is the scenario: the user is trying to get page servcie_A.jsp which for somw reason cannot serve the need and thereafter switches to service_B.jsp instead.
user ------> service_A.jsp ------> service_B.jsp
References: