----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

David -

        Howdy... if you do a location.replace(), the document will no longer
be accessible through the browser's session history.   For example:

        
top.FrameWithContents.location.replace("/path/to/my/servlet?parameter1=" +
parameter1);

        will put the output of "/path/to/my/servlet" into the frame with the
name "FrameWithContents" and the user won't be able to "back" out of it.

        Of course, this means you have to name your frames when you declare
them in the frameset tag, which of course you did already!  :-)  We use this
technique extensively and it solves many a "back button" problem...

        Yours,

Tom

-----Original Message-----
From: David Molloy [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 27, 2000 10:44 AM
To: Java Apache Users
Subject: Servlets/html question


----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

Hi,

        Just a small problem I'm trying to solve and I know there must be
a quick hack for sorting it out.  This is the scenario:

Standard pages consist of a header frame and a content frame. (see
http://www.eeng.dcu.ie ).  The problem with frames is trying to preserve
user control etc. and I want to allow people to type urls for anywhere
in the site.  So to do this I allow people to say call 
http://www.eeng.dcu.ie/staff/technical.html  - it loads the page and
onload it checks if (self==top) and if it is then it calls a servlet
which writes out the frames code and essentially forces the header on
this page (which I want there on all pages within the site).  The
servlet is called in this case using: 
http://oak.eeng.dcu.ie/admins/eepage?url=/staff/technical.html

Everything is dandy and I'm patting my own back when I find out that
if you try to go back (as some people seem to like to) using the
browser back button or a history.back() it goes back to the page,
which on load calls the servlet again and again and again everytime I
click back.  Can anyone think of a quickie way around this?  I've
been messing with referrer and history but to no avail.  Thanks...

David Molloy



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to