struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Neil Meyer" <neil.me...@cxchange.co.za>
Subject RE: Redirect in filter out of frames
Date Fri, 03 Mar 2006 17:33:52 GMT
Cool I will try it. Thanks

-----Original Message-----
From: Frank W. Zammetti [mailto:fzlists@omnytex.com] 
Sent: 03 March 2006 05:14 PM
To: Struts Users Mailing List
Cc: Struts Users Mailing List
Subject: RE: Redirect in filter out of frames

Hehe, take a look at this:

http://www.jahns-home.de/rentmei/html/frames.html

Seems there might be an HTTP header that does the trick... add the header
to your login page, and that might do the trick.

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: fzammetti@hotmail.com
Java Web Parts -
http://javawebparts.sourceforge.net
Supplying the wheel, so you don't have to reinvent it!

On Fri, March 3, 2006 9:54 am, Neil Meyer said:
> Thanks Frank,
>
> I hoped that there is some other way but I guess that I will have to do it
> this way.
>
> Regards
> Neil Meyer
>
>
> -----Original Message-----
> From: Frank W. Zammetti [mailto:fzlists@omnytex.com]
> Sent: 03 March 2006 04:52 PM
> To: Struts Users Mailing List
> Cc: Struts Users Mailing List
> Subject: Re: Redirect in filter out of frames
>
> Hi Neil.
>
> This isn't something you can do from a filter, breaking out of frames is a
> complete client-side activity.  One suggestion is to have your filter
> redirect to a page that has an onLoad event to break the user out of the
> frames.  I actually do this in a project here at work.  It will of course
> only work if Javascript is enabled, but it's the only way I can think to
> do it.
>
> --
> Frank W. Zammetti
> Founder and Chief Software Architect
> Omnytex Technologies
> http://www.omnytex.com
> AIM: fzammetti
> Yahoo: fzammetti
> MSN: fzammetti@hotmail.com
> Java Web Parts -
> http://javawebparts.sourceforge.net
> Supplying the wheel, so you don't have to reinvent it!
>
> On Fri, March 3, 2006 9:41 am, Neil Meyer said:
>> Good day,
>>
>> I use a filter to check if the session is still open when the session is
>> lost
>> this will redirect back to the login page. This works nice if I don't
>> use
>> any
>> frames, but now I use frames for a specific project. When I click on the
>> jsp
>> page on the logout tag it is possible to call the
>>
>> document.homeLogoutForm.target="_top";
>>
>> How do I do this in the filter?
>>
>>
>>
>
config.getServletContext().getRequestDispatcher("/web/forceLogout.do").includ
>> e(request_, response_);
>>
>> I know I can do it by redirecting to a .jsp page with only the
>> javascript
>> that contain the document.homeLogoutForm.target="_top"; and the loging
>> location after the action mapping, but that's not really how I want to
>> do
>> this.
>>
>> Any help or ideas on this will be appreciated.
>>
>> Regards
>> Neil Meyer
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


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


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


Mime
View raw message