cancel
Showing results for 
Search instead for 
Did you mean: 

How to handle browser BACK / FORWARD commands?

Former Member
0 Kudos

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?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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.