tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Barker" <wbar...@wilshire.com>
Subject Re: How to maintain session attributes in a frameset?
Date Thu, 06 Feb 2003 07:56:46 GMT

"Johann Uhrmann" <johann.uhrmann@xpecto.com> wrote in message
news:3E413153.1030704@xpecto.com...
> Hi,
>
> I'm using the following configuration:
>
> - Tomcat 4.1.12
> - Struts 1.1b3
> - JSTL 1.0
> - a frameset containing two frames (all JSP)
>
> The JSP containing the frameset sets session attributes using the
> <c:set> tag from JSTL. The frameset is built by using the Struts tag
> <html:frame ...> (relative URLs to frame in the same web-app).
>
> The session attributes which are set in the frameset-page cannot be
> retrieved in the frames because the frames could not be assigned to
> the session that was created by the frameset.
>
> This behaviour occured in all tested browsers (IE 6, Mozilla 4+7, Opera
> 7). When using Mozilla 7, I deleted the session cookie JSESSIONID.
> Afterwards, the application worked as intended. However Mozilla did not
> create any new session cookie.
>
> Using URL-rewriting in the frameset showed no effect.
>

Traditionally,  you need to use URL-rewriting to fix fameset problems.
Something like:

<frameset>
  <frame src="<%= response.encodeURL("frame1.jsp") %>">
  <frame src="<%= response.encodeURL("frame2.jsp") %>">
</frameset>

If this is not working, then please post a simple webapp that fails to
http://nagoya.apache.org/bugzilla.


> Is this a known problem and is there any work-around?
>
> Thanks in advance,
>
> Johann Uhrmann
>
> --
> Johann Uhrmann
> xpecto AG | Lindenstrasse 81 | D-84030 Ergolding
> Telefon: 0700 xpecto 00 (0700 973286 00)
> Telefax: 0700 xpecto 10 (0700 973286 10)
> Internet: www.xpecto.com




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


Mime
View raw message