go to  ForumEasy.com   
JavaPro
Home » Archive » Message


[Email To Friend][View in Live Context][prev topic « prev post | next post » next topic]
  Observations
 
Subject: Observations
Author: WebSpider
In response to: Solution with REDIRECT
Posted on: 09/30/2010 03:23:07 PM

INCLUDE:

         user ----> service_A.jsp ---> service_B.jsp
              <-----------------------

  • 1) one traffic;
  • 2)url remains unchanged;
  • 3)request's attribute passed as expected.
  • 4)session's attribute passed with no surprise.

    REDIRECT:
             user ----> service_A.jsp      service_B.jsp
                  <----
             user -----------------------> service_B.jsp
                  <-----------------------
    

  • 1) two traffic: one returns with 302 Moved Temorarily, and the other returns with service_B.jsp;
  • 2)url changed as expected;
  • 3)request's attribute not passed as expected.
  • 4)session's attribute passed with no surprise.


     

    > On 09/30/2010 03:14:36 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");
            response.sendRedirect("service_B.jsp"); 
    
        }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.