tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Barker" <wbar...@wilshire.com>
Subject Re: Sharing a session between multiple frames
Date Wed, 02 Jul 2003 05:56:12 GMT
With frames it is especially important to encode the URL, since the frames will likely be loaded
in parallel.  You need something like:

   <frame src="<%= response.encodeURL("left.jsp") %>">
   <frame src="<%= response.encodeURL("right.jsp") %>">


  "Mark Riddoch" <Mark.Riddoch@athoa.com> wrote in message news:3F01BE31.4080804@athoa.com...
  Hi,

  I will try to split out the code to a reasonable size. In the meantiem I have found out
a little more information.... and it is very odd....
  The setup under Tomcat 4.0 works with IE6 and Netscape 7. When I moved to I moved to Tomcat
4.1 it stopped working with IE6.
  I just happen to have tried Netscape and it still works under netscape. Now I am really
confused! Iam starting to look at the HTTP headers
  to see what the difference might be.

  Mark

  Shapira, Yoav wrote:

Howdy,

  
I have a webapp that makes use of the session to store a key to track
the current state of a user. This all works fine under Tomcat 4.0 but
when I move to 4.1 on Linux I get a problem as soon as I start invoking
multiple frames on a page. It seems that a different thread is used for
the two frames on my page, and that the new thread that gets invoked
doesn't have the session object any more. Does anybody know of a way to
change the configuration of  Tomcat 4.1 so that I share the session
between the two frames?
    

Sessions will be shared between the two frames.  Can you post specific
code that fails in tomcat 4.1.x but works in 4.0.x?

It is entirely possible, and legal, for different frames (which are
different HTTP requests) to be served by different request processing
threads in tomcat.  That wouldn't affect the session.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org



  


  -- 

  Mark Riddoch - Software Architect
   
  ATHOA Ltd. - Making CRM a reality

        Weir Bank
       Phone:
       +44 (0)1628 762 635
       
        Bray-on-Thames
       Fax:
       +44 (0)1628 635 985
       
        Maidenhead - SL6 2ED
       Mobile:
       +44 (0)7850 218 966
       
        UK
       e-mail:
       Mark.Riddoch@athoa.com
       






Mime
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message