Skip to Content
avatar image
Former Member

How to handle browser BACK / FORWARD commands?

I have build a demo Product Data Portal using the JSPDynPage solution. Event handling of events raised by user interface controls is clear, the same holds for the control model. You handle the web control event in some method of the extended JSPDynPage class and hence determines the new state.

But how to handle the situation that the user clicks on the BACK button (or FORWARD) of the browser? What I would like then is that this event is intercepted also by the framework and an automatic dispatch is done to the method I want, for example onGoBack. Thus the same situation as when I use explicitly a GoBack push button of which the click event is handled in the onGoBack method of the extended JSPDynPage class (what I do now). This makes that control is transparent.

Is there anybody who can help me with this topic?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Apr 08, 2004 at 12:08 PM

    This is exactly one of the core problems in webdevelopment. You have got no options to handle the browsers actions.

    The only thing to do is to look up the referrer parameter in the Requestheader, to know where the client comes from.

    Add comment
    10|10000 characters needed characters exceeded