You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Johann Uhrmann <jo...@xpecto.com> on 2003/02/05 16:44:19 UTC

How to maintain session attributes in a frameset?

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.

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


Re: How to maintain session attributes in a frameset?

Posted by Bill Barker <wb...@wilshire.com>.
"Johann Uhrmann" <jo...@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