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 REDIRECT
 
Subject: Solution with REDIRECT
Author: WebSpider
In response to: Solution with INCLUDE
Posted on: 09/30/2010 03:14:36 PM

On the page service_A.jsp:


    if(failed){

        request.setAttribute("request_attr", "request_attr_value");
        session.setAttribute("session_attr", "session_attr_value");
        response.sendRedirect("service_B.jsp"); 

    }else{

        ...

    }



 

> On 09/30/2010 03:11:38 PM WebSpider wrote:

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{

        ...

    }






References:

 


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