RE: Bowser back buttons and jsp

2001-02-22 Thread Matt MacGillivray1
Title: RE: Bowser back buttons and jsp






I've run into similar problems and decided to deal with it through javascript, hoping the user won't open the page in a new browser window.  Although, you can still deal with that problem through javascript.

You get rid of the back button problem by using a javascript link to open the window initially.  That way, you can specify whether you want the back button, etc. or not.  The following snipit of code will link to your application (or mine) and open a new window, minus the browser functionality.

i.e.


Delfour Corporation
</FONT>
<BR><FONT SIZE=2><!-- hide me</FONT>
<BR><FONT SIZE=2>function servletFoundation()</FONT>
<BR><FONT SIZE=2>{</FONT>
<BR><FONT SIZE=2>    window.open("<A HREF="http://localhost:8080/delfour_servlet/Saucer" TARGET="_blank">http://localhost:8080/delfour_servlet/Saucer</A>","_blank",</FONT>
<BR><FONT SIZE=2>  "width=640,height=480,resizable,scrollbars,status");</FONT>
<BR><FONT SIZE=2>}</FONT>
<BR><FONT SIZE=2>// end hide --></FONT>
<BR><FONT SIZE=2>


Servlet Foundation Link





Matt MacGillivray
Technical Developer
Delfour Corporation
(905) 415-9779 x2021
[EMAIL PROTECTED]




-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 3:49 PM
To: Orion-Interest
Subject: Bowser back buttons and jsp




This question doesn't really apply to the webserver in general.  I have
developed an ecommerce application using java beans and jsp.
Unfortunately, during qa testing, one problem keeps coming up.  If you
click the back button on the browser and ignore the navigation built into
the system, you encounter errors.  I've researched if there was a way to
disable the browser navigation options via javascript or some other way but
I found that this is not really possible.  What I was wondering is how do
other java professionals handle this problem?  Has anyone ever ran into
this?





Re: Bowser back buttons and jsp

2001-02-22 Thread Tim Endres

I believe you will need to design your system to accomodate this case.
There is no workaround that I am aware of, and this is a very common
user behavior.

tim.

> This question doesn't really apply to the webserver in general.  I have
> developed an ecommerce application using java beans and jsp.
> Unfortunately, during qa testing, one problem keeps coming up.  If you
> click the back button on the browser and ignore the navigation built into
> the system, you encounter errors.  I've researched if there was a way to
> disable the browser navigation options via javascript or some other way but
> I found that this is not really possible.  What I was wondering is how do
> other java professionals handle this problem?  Has anyone ever ran into
> this?





RE: Bowser back buttons and jsp

2001-02-22 Thread Kev Roberts

You can try to get round this on the client side with JavaScript but to do
things robustly you need to handle this server side. 
How do you handle the navigation, validation and processing from your JSP?
Have a look at the State pattern, this works really well for an encapsulated
approach to this, and can easily be extended to cope with both forward and
backward navigation.
If that doesn't make sense then give me a shout,

Kev

> -Original Message-
> From: Ray Brown [mailto:[EMAIL PROTECTED]]
> Sent: 22 February 2001 00:44
> To: Orion-Interest
> Subject: RE: Bowser back buttons and jsp
> 
> 
> What is an example of the errors?
> 
> I use a nice freebie menu system, written in JavaScript, for
> my apps and if the user uses the "Back" button (provided by
> the browser) and the page has not fully been written by the
> browser, the browser decides not to display the page at all.
> If you request to view the source, it's there.  Is this the\
> kind of error you mean?  [This occurs under NS4.5 on Apache
> or Orion]
> 
> Ray
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of
> [EMAIL PROTECTED]
> Sent: Wednesday, February 21, 2001 3:49 PM
> To: Orion-Interest
> Subject: Bowser back buttons and jsp
> 
> 
> 
> This question doesn't really apply to the webserver in 
> general.  I have
> developed an ecommerce application using java beans and jsp.
> Unfortunately, during qa testing, one problem keeps coming up.  If you
> click the back button on the browser and ignore the 
> navigation built into
> the system, you encounter errors.  I've researched if there 
> was a way to
> disable the browser navigation options via javascript or some 
> other way but
> I found that this is not really possible.  What I was 
> wondering is how do
> other java professionals handle this problem?  Has anyone 
> ever ran into
> this?
> 
> 
> 
> 




RE: Bowser back buttons and jsp

2001-02-22 Thread Ray Brown

What is an example of the errors?

I use a nice freebie menu system, written in JavaScript, for
my apps and if the user uses the "Back" button (provided by
the browser) and the page has not fully been written by the
browser, the browser decides not to display the page at all.
If you request to view the source, it's there.  Is this the\
kind of error you mean?  [This occurs under NS4.5 on Apache
or Orion]

Ray

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
[EMAIL PROTECTED]
Sent: Wednesday, February 21, 2001 3:49 PM
To: Orion-Interest
Subject: Bowser back buttons and jsp



This question doesn't really apply to the webserver in general.  I have
developed an ecommerce application using java beans and jsp.
Unfortunately, during qa testing, one problem keeps coming up.  If you
click the back button on the browser and ignore the navigation built into
the system, you encounter errors.  I've researched if there was a way to
disable the browser navigation options via javascript or some other way but
I found that this is not really possible.  What I was wondering is how do
other java professionals handle this problem?  Has anyone ever ran into
this?