How can detect user's click on "Back" button in browser?

Hi java gurus:
I use servlet as a controller to show pages. If user click "Back" button several times, and execute an operation in the page, at that time the attributes in the session is for the page before clicking "Back". So the operation run with the wrong data. How can I deal with this condition? Can I detect user's click on "Back"?
Thanks for any suggestion.
allan

Any request made by a client could be "stopped" after
the session has been updated with the new timestamp.
This would leave the client sitting viewing a page
that has an "out of sequence" timestamp in the hidden
field with no way to get out.Yes, the client could stop the request and have no valid unique String to submit. However, the technique is only designed to detect out of sequence pages, it does not mean the user has no way out! Remember that the server side code can respond to the fact that the request is out of sequence in any way. Certainly, they could choose to lock the user out, but more often than not it will be a more intelligent response than that.
This problem could also manifest itself if the client
makes a request of type a then changes their mind and
makes a request of type b before the type a request
has been returned.Yes, in this case the request would be considered 'out of sequence'. It's really a variation of the condition you mentioned earlier.
Any ideas?Again, the code can respond to the fact that the request is out of sequence in several different ways. It may, for example, ignore the fact that it is out of sequence if it finds the data it needs in the session store. It may force the user to start over, or any other action which makes sense -- It's going to be very application dependent.
Good luck,
-Derek

Similar Messages

  • I want to do banners ,how can we do  when click the same button (next button)  it must show differen

    i want to do banners ,how can we do  when click the same button (next button)  it must show different images . cam any one help

    Check out my blog with samples on Edgehero.
    http://www.edgehero.com/articles/interactivity

  • How to clear the portal form fields while clicking on Back button in browser?

    Hi All,
    I have a portal form, which calls another form. When I types in a value and presses submit, it goes to the new
    form with the information on it. When I click on the back button in the browser, it will show the last value user
    has entered. I want to clear these values, when I click on the back button in the browser.
    Any help is greatly appreciated.
    Thanks & regards,
    Nevin

    Lets assume that the name of the field, whose value you want to clear off,
    is SEARCH_TEXT :-
    Steps :-
    1> Edit the form and goto the Additional PL/SQL Section
    2> Add the following code to the "...after displaying the page" area
    declare
    l_form_name varchar2(200);
    l_sess_id integer;
    begin
    l_form_name := p_session.get_module().get_name();
    l_sess_id := p_session.get_id();
    htp.p('<script>
    var fieldName = "'||l_form_name||'.DEFAULT.SEARCH_TEXT.01";
    var formObj = document.WWVM'||l_sess_id||';
    for (var i=0; i < formObj.length; i++){
    if (formObj.elements.name == fieldName){
    formObj.elements[i].value = "";
    break;
    </script>
    end;

  • Clicking the back button now causes a drop down of past sites to show up in addition to moving back a page. It won't go away until clicking somewhereIrritating

    Whenever I click the back button, the browser will go back a page and also open a drop down of past pages. This drop down won't go away until I click somewhere. It is irritating and it never used to have this functionality. In fact, my laptop at work does not do this. I am using 37.0.2. Is there an option somewhere to disable this? I don't mind having the drop down, but not EVERY time I click back.

    Today, two other users reported issues with the back-forward history list dropping down if they hovered the mouse pointer over the back or forward button -- without clicking -- and then moved the pointer downwards. One user was on a touchpad, I don't know about the other user. Are you experiencing anything like that?

  • BDC - How to ignore skipped screens when user click on back button

    Hello all,
    I am working on a module pool program. From this custom transaction I am calling a standard SAP screen using BAC call transaction. I am calling this screen by skipping 2-3 screens and user can directly see the 3 screen on an event on my custom transaction.
    Now my issue is whenever the user want to back, he clicks on back button then user have to back from all the screens that I skipped.
    Is this any way by which if user click on back then he can directly go to my custom transaction.
    Please suggest.
    FYI..
    I am calling IA06 - Inspection characterstics screen from my custom screen using BDC.
    Thanks,
    Sanket Sethi

    Hi Jovito,
    I also think the same that it's not possible. Now my issue is how to get my requirement.
    FYI..
    To open Classification screen directly we have a function module CLFM_OBJECT_CLASSIFICATION. But if I want to open IA06
    Inspection characterstics screen we don't have any FM or API to do the same.
    So how will I get my requirement done. That why I use the BDC call transaction to open IA06 Insp. characterstics screen but here I am facing this Back issue.
    Please advice if there is any suggestion.

  • I hate the update of the bar. It has totally done away with being able to skip back several places in the browser; now I can only click the back button and go back one page at a time. I otherwise hate the new layout, too. How do I undo this?

    I can't choose a specific page to skip back to but must click the back button over and over to get back to where I want to skip to. The little headings "most visited," "getting started," "Youtube," etc. have changed. They look more colorful, but I hate how the home button is clear over to the right side of the page, etc. What was wrong with the way everything was before? I HATE this new update, and I didn't even want it.

    You can get the drop down list by either right-clicking on the back/forward buttons, or holding down the left button until the list appears.
    If you want the drop-down arrow you can add it with the Back/forward dropmarker add-on - https://addons.mozilla.org/firefox/addon/backforward-dropmarker

  • How can I change the Chinese characters back to English appear on the bottom icons after clicking the App Store icon on the iPad?  It was in English before I upgrade to iOS5.

    How can I change the Chinese characters back to English appear on the bottom icons after clicking the App Store icon on the iPad?  It was in English before I upgrade to iOS5.

    Is the address on your account based in France ? The language of the stores should reflect the language of the country where your account is based, which isn't necessarily the same language as you've set on the device.
    If your account isn't based in a French spealing country, then try logging out of the account (via Settings > Store) and then log back in (and also make sure that your address is correct and complete), and see if the language of the iTunes and App Store the reflect the language of the country where your account is based.

  • Issue of data getting wiped out when user clicks on back button..

    Hello Gurus,
    I have a selection program which displays ALV on execution. Now I have programmed the "Back" Button of standard toolbar so that when comeone clicks on it, it should leave to selection screen.
    WHEN 'TBACK'.
          LEAVE TO TRANSACTION SY-TCODE.
    But when I do that, the values entered by user during execution of selection screen wipes out and all the selection fields become empty. How can I make sure that when sure clicks on 'Back' button, the selectiuon screen is presented but with values in which user put during execution.
    Regards,
    Rajesh.

    Hi Rajesh ,
    Leave to transaction sy-tcode is as as good as call transaction...so basically using this statement will start the transaction afresh..and give a new selection screen....
    Better option would be to leave to screen 0 (preferaby used for a report )which will take you back to the previous screen processed or leave to screen XXXX for a particular screen( in case of a module pool )
    Hope it helps
    Regards
    Byju

  • I used a third party programme called Mackeeper UGHHH,it moved loads of files to the trash now i do not know where they originally came from or belong!! the put back option is in grey??how can i manually put these files back where they belong?SO upset!!

    I used a third party programme called Mackeeper UGHHH SOOO Stupid i know,it moved loads of files to the trash now i do not know where they originally came from or belong!! the put back option is in grey??and will not work even when i highlight one by one!!
    how can i manually put these files back where they belong?
    i know i should have used time machine but i have not set it up and its too late for that now
    i have been researching and racking my brain on how to put these folders and contents of them back to where they once were all of the contents of the folder are still in tact AND i have not emptied my trash,my programmes and some of my apps are not working properly now...i use my computer alot for making music and things are jumbled up now...
    is there anyone out there who knows the answer to my prayers on how to go about putting these folders/files back to where they came from to restore functionality to my mac..Yes and thank u if u were going to tell me i HAVE un installed mackeeper...A very sad and upset Mac user!! Cheers Shane

    hello there thank u so much for ur reply!! ok i uninstalled mackeeper now and the put back option is still in grey im so confused...i tried restarting my computer like u said and put back still in grey??!! the files that are in my trash are everything from Accounts,address book plug-ins,address book,adobe,aim.........then stuff like apple,Audio,....to caches color pickers,colors,com.apple.TCC,to DVD player to facebook,google to ilifemedia browser to itunes to keychains to movie effects,preferences printers to skype...my Native instruments files BUT not all of them my garage band but not all of it...it seriously looks like my whole library is in the trash i tried to put things back where i THINK they belong and it just added the item or folder under where i thought it went and didnt restore functionality to for instance google chrome and all my book marks are there....they seem to be only certain things from my library that would have added some functionality to apps and programmes like my garageband is missing stuff photobooth wont work so on.......kinda looks a bit like this thats only the half of it!! Cheers shane!!!

  • How can I get the old Firefox back, this new one stinks

    how can I get the old Firefox back, this new one stinks

    Firefox is highly customizable and you may be able to customize it to meet your needs.
    If you do not like the new UI, you can make Firefox 4 look and behave more like Firefox 3.6, for details see http://www.computertechtips.net/64/make-firefox-4-look-like-ff-3-6
    To downgrade to Firefox 3.6 first uninstall Firefox 4, but do not select the option to "Remove my Firefox personal data". If you select that option it will delete your bookmarks, passwords and other user data.
    You can then install the latest version of Firefox 3.6 available from http://www.mozilla.com/en-US/firefox/all-older.html - it will automatically use your current bookmarks, passwords etc.
    To avoid possible problems with downgrading, I recommend going to your profile folder and deleting the following files if they exist - extensions.cache, extensions.rdf, extensions.ini, extensions.sqlite and localstore.rdf. Deleting these files will force Firefox to rebuild the list of installed extensions, checking their compatibility, and reset toolbar customizations.
    For details of how to find your profile folder see https://support.mozilla.com/kb/Profiles

  • How can I get Time Machine to back up an external hard drive (iPhotos) that is attached to airport extreme base station. Note: Time machine is usb to macbook pro and external drive with iphotos is usb to airport extreme base station. Help please. Thanks!

    How can I get Time Machine to back up an external hard drive (iPhotos) that is attached to airport extreme base station. Note: Time machine is usb to macbook pro and external drive with iphotos is usb to airport extreme base station. Help please. Thanks!

    Once you have the drive connected to your Mac, click System Preferences (gear icon) on the dock
    Click Time Machine
    Click Options
    Be default, the hard drive will be Excluded from backups. Click the drive to highlight it, then click the "-" (minus) button at the bottom of the list to remove the drive from Excluded items.
    The drive will be backed up on the next Time Machine pass
    Everything above assumes that the hard drive has been formatted in Mac OS Extended (Journaled) as Time Machine will only backup drives in that format.

  • I used to have a web page in mobile me and now is closed.  How can I get my webpage data back?

    I used to have a web page in mobile me and now is closed.  How can I get my webpage data back?

    Your web pages on MobileMe have been deleted. If you were using iWeb you wouldn't have been able to open them anyway.
    As long as you have the iWeb 'Domain' file in your user Library, or whatever the program you are using stores the information in, on your Mac you can publish to another hosting service - there are plenty to choose from. More information here:
    http://rfwilmut.net/missing2

  • I forgot the backup encryption password in iTunes how can I get my backup data back?

    I forgot the backup encryption password in iTunes how can I get my backup data back?

    You need to ask Apple to reset your security questions; this can be done by clicking here and picking a method, or if your country isn't listed, filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (109920)

  • I've overwritten my Mac OS with Windows Vista, how can I get my Mac OS back

    I Was downloading a Windows Vista OS on my Mac and I accidentally deleted the Mac OS. How can I get my Mac OS back? Can I use the CD's accompanied with my MAC
    when I put the DVD to Install the MAC system from vista...It doesnt give an option for ordinary installtion but it gives me an option for remote installtion (which it needs an network or internet connection or something like that...) what should i do ??
    :(:(

    You need to repartition the drive. While booted from the DVD, select Utilities > Disk Utility from the menu bar. In Disk Utility, select the boot drive from the list on the left. It will have a long name starting with the capacity in GB. Click on the Partition tab. Choose "1 Partition" as the volume scheme. Click on the Options button near the bottom of the window, then click on the button labeled "GUID Partition Table." Finally, click Apply. When the partition finishes, you can quit Disk Utility and go back to the Installer. You should now see your internal drive as available for installation.

  • How can I get my purchased apps back?

    How can I get my purchased app back after ios5 update?  Not all of my purchased apps are listed under "purchased apps" in the app store.

    Download Past Purchases
    http://support.apple.com/kb/HT2519
    Log into iTunes using the account the Purchase was made with... Click on Buy... and a notice will come up saying you already have it... do you wish to download it again... Click Yes...

Maybe you are looking for

  • I can't get Mozilla Drag and Drop Uploader to work. Suggestions for troubleshooting?

    I have a recurring need to post 100's of photos from "My Pictures" to a web site. I currently click on "Browse", up pops the photo file, and I then must manually select the proper photos and double click them to move them to the web site. A colleague

  • To recognise the path of your page.

    I need to keep only the file of my page. I don't need to keep also the domain name. ex. www.site.com/filename.cfm How I can do to insert into the variable "pagename" only: filename.cfm <cfset pagename = ....> Thanks CFwork

  • Business connector http error

    Hi XI'ers, For those who know about business connector and java errors. We are sending bapi (BAPI_POEC_XML_SEND) to business connector. Everything is ok until the HTTP request to our client which is failing. The error is : "java.lang.ArrayIndexOutOfB

  • I am having problems with connecting to my router wireles...

    I am having problems with connecting to my router wirelessly.  How do I determine my access point's network key?

  • APPL_SERVER_ID is different in dbc file for each server.

    I have 6 nodes as forms+apache tier, 2 nodes as CM tier and on one node DB runs. I just queried the value of SERVER_ID from view FND_NODES. It shows 8 different values of SERVER_ID for each server!!!! Fortunately it matches the value of APPL_SERVER_I