freelanceprogrammers.org Forum Index » Java

Browser Back and Forward


View user's profile Post To page top
a0_saeed Posted: Tue Feb 19, 2002 3:49 pm


Joined: 19 Feb 2002

Posts: 3
Browser Back and Forward
Assume below scenario:<br><br>You know if you
have logged on Yahoo! mail and when you are reading a
mail:<br><br>1 - if you press browser back button and come back
to login page <br>2- Then press browser Forward
button, you will be gone to Login page insetead of the
mail page.In other words, in client side you have
forwarded to other page.<br><br>I want to have this
functionality in the login page of my application.but I don`t
know how?<br><br>I have a loggin.jsp page<br><br>I
appreciate your comments,<br><br>Saeed
Reply with quote
Send private message
View user's profile Post To page top
mcconnell_stephen Posted: Wed Feb 20, 2002 8:47 pm


Joined: 01 Feb 2002

Posts: 73
Browser Back and Forward
We haven`t ignored your question... I`m just
researching how to do this... The servlet API has access to a
history method... I`m just trying to see how to do this
and test it out.<br><br>We`ve been using a
"breadcrumb" mediator in our development which is kept in
session and keeps track of where the person has been. You
get the URI and push it on a stack in the mediator...
But there should be another way to do
it.<br><br>Stephen McConnell
Reply with quote
Send private message
View user's profile Post To page top
spooge21 Posted: Wed Feb 20, 2002 9:07 pm


Joined: 14 Feb 2002

Posts: 50
Browser Back and Forward
I am not sure you will find the answer in the
Servlet API, Stephen. I believe that this will require
some client-side JavaScript work. I could be mistaken
though.<br><br>I suggest to the author of the original post that
you do some research into JavaScript and see if you
can find an answer to your question there.<br><br>One
other thought: will the forward button always pull the
next page from the cache? What if you force the page
to not be stored in the cache using HTTP headers,
thus forcing a request to be sent for the
page?<br><br>Sincerely,<br>Anthony Eden
Reply with quote
Send private message
View user's profile Post To page top
gblue42 Posted: Wed Feb 20, 2002 9:40 pm


Joined: 10 Feb 2002

Posts: 15
Browser Back and Forward
I may not be understanding the question but I
can`t seem to reproduce the scenario. If I log in to
Yahoo mail and from the mail main page, click the back
button to the login page and then the forward button,
I`m at the mail home page again.<br><br>FWIW I have
my browser set to refresh every visit to the page.
What am I missing? I know that JavaScript has the
history object that has back() and forward() methods so
maybe there`s something useful there.
Reply with quote
Send private message
View user's profile Post To page top
mcconnell_stephen Posted: Wed Feb 20, 2002 10:07 pm


Joined: 01 Feb 2002

Posts: 73
Browser Back and Forward
Yeah... I was confusing some stuff I had seen in JavaScript.<br><br>Mia Culpa,
Mia Culpa, Mia Farrow.<br><br>Stephen McConnell
Reply with quote
Send private message
View user's profile Post To page top
dnp7 Posted: Thu Feb 21, 2002 5:42 pm


Joined: 19 Feb 2002

Posts: 22
Browser Back and Forward
You can try catch in JavaScript function which is
called by onUnload (&lt;BODY
onUnload="unloaded()"&gt;<br>)"full login field and empty passw field" event and
forward to another page, if this is true.<br><br>Good
Luck,<br>Dmitry
Reply with quote
Send private message
Post new topic Reply to topic
Display posts from previous:   
 

All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
China Wholesale - Electronics Products
Character Studio - Tutorials and Help