go to  ForumEasy.com   
JavaPro
Home » Archive » Message


[Email To Friend][View in Live Context][prev topic « prev post | next post » next topic]
  Solution with INCLUDE
 
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:

 


 
Powered by ForumEasy © 2002-2022, All Rights Reserved. | Privacy Policy | Terms of Use
 
Get your own forum today. It's easy and free.