Send Request to servlet every time with the back button

Hi,
We are designing a web site in which all the pages are dynamic depending on what he does with his ordering system. Problem is when the uers request a change to the orders (eg deletes) the page is generated again. But the user can use the back button to see the deleted order.
Question. Is there any way to send a request to the server everytime the back button is pressed.
I have already added this to the top of my generated pages.
response.setHeader("Cache-Control","no-cache"); // HTTP 1.1
response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setHeader("Expires" , "0");
I tried both the POST and GET request too.
Any help would be appreciated.
Thanks.

This is an issue of never ending discussions. If you did a search for similar topics in this forum, you'd encounter various opinions including examples of suggested solutions.
You can also see various real life behaviors on various real web sites.
Personally, I don't want to put too much effort in disabling the back button. The back button is a mere display of the previous page and not the state of the application. As a user I like websites which do not mess with the browsers back button and let me see what I did on the previous page.
If the user tries to do something with this deleted order, you should be able to track that and display a suitable error message.
BTW, those headers do not have any effect on browsers back button. They merely control caching of pages.

Similar Messages

  • Problem with the back button in the Alv ouput

    i have  refresh button in output of my alv report when i click on this it is getting refreshed ,now the problem is with the back button after refresh whn i click on back button it is not going to selection screen , i have to  click  the back button thrice  to come out to the selection screen ,if have refreshed  the ouput  screen twice .
    if i dont refresh the back button is working fine , So i have used "call to selection screen 1000" it coming  to selection screen without any problem  but in selection screen on clicking on back button it is again going back to output screen ,So please suggest what has to be done here .

    Hi Brahmananda,
    Please try to understand the flow of program and the screen navigation
    the click of BACK button triggers PAI and (to the best of my knowledge) you might have called the ALV screen number without any checks ( may be) so it is again taking to the ALV.
    try using
    in PAI
    module exit at exit-command
    in program
    module exit
    case ok_code
    when 'BACK'.
    LEAVE PROGRAM ( or any thing that you want it to be )
    endcase
    endmodule
    regards
    Ramchander rao.K

  • With Firefox4 I no longer get the "Organize Bookmarks" option. I can only edit bookmarks one at a time with the "star" button

    I still have the bookmarks list, the toolbar, and all of my old bookmarks, but the option to "Organize" them is not there.

    The option is now called "Show All Bookmarks", and it opens the same window as before.
    Took me a minute to figure that out.

  • The "back" button on my ipod touch won't work?

    problem with the back button on my ipod touch

    What "back" button? Ther is the Power button on the upper dege, right side and the Home button on the front, bottom center.
    If you mean the Home button:
    Try:
    http://snapguide.com/guides/calibrate-your-home-button/?utm_expid=69945963-15
    fix for Home button
    iPhone Home Button Not Working or Unresponsive? Try This Fix
    - If you have iOS 5 and later you can turn on Assistive Touch it add the Home and other buttons to the iPods screen. Settings>General>Accessibility>Assistive Touch
    - If not under warranty Apple will exchange your iPod for a refurbished one for:
    Apple - Support - iPod - Repair pricing
    You can do it an an Apple store by:
    Apple Retail Store - Genius Bar
    or sent it in to Apple. See:
    Apple - Support - iPod - Service FAQ
    - There are third-party places like the following that will repair the Home button. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens

  • HT1349 My ipad2 closes the mail app while I am typing an email to send. Happens nearly every time.

    My ipad2 closes the mail app while I am typing an email to send. Happens nearly every time.

    First of all quit the mail app and all of the apps that have frozen. Go to the home screen first by tapping the home button. Double tap the home button and the task bar will appear with all of you recent/open apps displayed at the bottom. Tap and hold down on the mail app icon until it begins to wiggle. Tap the minus sign in the upper left corner to close the app. Close the other apps the same way. Restart the iPad. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    What I would try next is to delete the email on the server in your web mail account using Safari or another browser. Then when you go back to the mail app - if it opens ok - and the if mesaage is still there in the inbox - swipe on the mesaage - left to right - in the list on the left side - and hopefully the red delete button will pop up. Hit delete to remove it from the inbox. Do the same thing when you go to your trash folder in that email account - swipe the message to delete it.

  • How to set up the iPhone 5 so that I can receive iMessage (incoming messages) and send text messages (outgoing) every time?

    How do I set up the iPhone 5 so that I can receive iMessage (incoming messages) and send text messages (outgoing) every time? I have limited internet quota but unlimited sms!

    Thanks!!
    The reason I don't want to set it off is because I want to let others send me iMessage - most people prefer that according to their plan.
    How do I bring this request to the hands of the people doing the ios updates? Maybe they could work on this for the future...

  • There is something wrong with the volumes buttons in my macbook pro, every time i pressed the one who raises the volume, it leads me to the screen where (i do not no what its called) the background is black with the date and time and a calculator.

    There is something wrong with the volumes buttons in my macbook pro, every time i pressed the one who raises the volume, it leads me to the screen where (i do not no what its called) the background is black with the date and time and a calculator. However, when i lower it, my safari tab goes out of the screen. What do you guys think i should do? I'm getting very nervous.

    hey HAbrakian!
    You may want to try using the information in this article to adjust the behavior of your function keys to see if that resolves the behavior:
    Mac OS X: How to change the behavior of function keys
    http://support.apple.com/kb/ht3399
    Take care, and thanks for visiting the Apple Support Communities.
    -Braden

  • Firefox will not open after installation. i have tried to install several times with the same results. installation sends a list to firefox each time. need help. willard lee

    will not open after installation. i have tried to install several times with the same results. installation sends a list to firefox each time. need help. willard lee

    Can you attach a screenshot or link to the instructions you are following?
    You are on the 3.6 release and Firefox 7.0.1 is out. You can download and install the latest release from http://www.mozilla.org/en-US/firefox/new/ if you would like to update now. The 3.6 version will be maintained for a while longer, but you should update when you can.

  • Every time I create an account with iCloud then try to open it I get wrong ID or password. Even when I enter my birth date I am told it is incorrect. I have done this several times with the same results.

    Every time I create an account with iCloud then try to open it I get an error message: wrong ID or password. Also when I enter my birth date I am told it is incorrect. I have done this several times with the same results.

    Oldcameraman
    Please do not duplicate a thread. The threads are answered as soon as possible. We are not Adobe. Just user to user.
    I have answered your most recent of the duplicates
    Premier Elements 13 Organizer Works. Editor doesn't. Log in doesn't work
    It is uncertain just how far we can go to help you since you do not appear to have Premiere Elements any
    longer.Seems you demanded a refund from Adobe Chat, got it, and now are left with a non purchased program which I
    am not sure can be used.
    Duplicates tend to confuse the person asking the question as well as those attempting to reply. As I suggested in the
    above mentioned thread, try to sort out your situation with Adobe via its Adobe Chat.
    ATR

  • I can't sent an email to a large group of people. The sending email surface on every time I turn on my computer MAC PRO. How can I delete it? Why it happens? How to prevent it to happen again? Thank you. Danielson

    I can't sent an email to a large group of people. The sending email surface on every time I turn on my computer MAC PRO. How can I delete it? Why it happens? How to prevent it to happen again? Thank you. Danielson (Danicolenira)

    What do yo mean by " The sending email surface on every time"?

  • I created an apple ID account to my Iphone, but the system doesn´t send the verification link to my email adress. I tried many times with the buton "send verification email" but doesn´t work.

    I created an apple ID account to my Iphone, but the system doesn´t send the verification link to my email adress. I tried many times with the buton "send verification email" but doesn´t work. My mailbox doesn´t receive any mail.
    My account work correctly.
    please I need help.
    Thank you.

    It's a really bad idea to post your email addresess - it's an invitation to spam - and I've asked the Hosts to remove them.
    This is a user-to-user forum and no-one on here can take any direct action. If your Yahoo address is not working that's something you would need to take up with Yahoo - have you checked it by sending yourself an email to it?
    Otherwise you will need to contact Support: go to https://expresslane.apple.com/ and click on 'iTunes' in the center column and then 'iTunes Store' in the right-hand column and proceed from there.

  • HT4865 How do I stop the system from sending e-mail notification every time i update icloud?

    How do I stop the system from sending e-mail notification every time i update icloud?

    Pages.  Every time I add new information to the program I get an e-mail asking me if I was the one logging on.  It is an annoyance.

  • My ipad has been turning off every now and again for some time now but last night it turned off and when i try to turn it back on its just a blank screen with the back lighting. please help me

    Hi there, ok so my ipad has been either turning off or just locking itself for sometime now but last night it turned itself off and when i tried to turn it back on it just came up with a blank screen with the back light. When i put it on the charger the sound of it charging happenes but nothing else. I hav tried resetting it but as i am not very savvy with all this stuff i thought i would get some advise before doing anything else. it anyone can help me that would be fantasic
    thank you

    If a reset doesn't work, try and force iPad into Recovery Mode:
    1. Turn off iPad. Press and hold the Sleep/Wake button for a few seconds until the red slider appears, slide to turn off.
    2. Connect USB cable to computer
    3. Press and hold the Home button down and connect the docking end of cable to iPad
    4. Continue holding the Home button until you see the "Connect To iTune" screen
    5. Release the Home button
    6. Open iTune (make sure you have the newest version of iTune)
    7. You should see "iTunes has detected an iPad in recovery mode"
    8. Use iTune to restore iPad
    Note: You need to be patient and repeat the above many times to recover your iPad

  • How to go back on page by not sending request to servlet

    Hello,
    I have create web application using JSP and servlets. When I press a button I send request to servlet and it redirects me to jsp page where the results are displayed, then in that page I press a button and go to other servlet which redirects me to other JSP.
    I want to make a button on the third JSP page to go back to second JSP page by not sending request to servlet. For e.g. in FireFox, I press back button and it takes me back. But I want that the same action like in firefox would work with my created button.
    How can I do that?
    Edited by: peliukasss on Sep 14, 2010 3:28 PM

    evnafets wrote:
    You wnat your created button to act the same as the "back" button in the browser?Yes, thats exactly what I need.
    Then all you need to do is invoke some javascript on it.
    After a quick google search, the most commonly suggested solution appears to be:
    onclick="history.go(-1)"
    Thanks for your reply.

  • Every time since the latest update when I access the Internet I am asked for my apple password, what's up?

    Every time since the latest update when I access the Internet I am asked for my apple password, what's up?

    Hi Gizzymoeaiden,
    If you are having an issue with your iPhone asking for your iCloud password each time you try to send mail, it may be necessary to reset the password of the Apple ID you are using for iCloud. See this article for how -
    Apple ID: Changing your password - Apple Support
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

Maybe you are looking for

  • (BUG REPORT) Bloodborne, Tiny Music Box.

    Im sure many of you guys noticed It is possible to obtain a box in every ng+ which will permanently take up a storage space as it carries over every time you go on a new ng+ level and cannot be discarded sold etc. i thought it will get fixed on patch

  • NOT RESOLVED - SCOM 2012 R2 - App Advisor and App Diagnostics Issue

    Hi there! Here is our scenario: SCOM 2012 R2 is deployed in the environment SCOM - Management Server and SCOM Management Console. SQLOD - SQL 2012 Operational Database SQLDW - SQL 2012 Data Warehouse Database, SQL Reporting Services, SCOM Reporting,

  • How to view data.

    hi, i created one form in jsp. it contains some text fields(like empid, name,etc).The same fields are created in Oracle Database also. Now i want to fetch the data from database and compare to the current jsp fields. If it match correctly, i want to

  • Multiple entries in Finder "Window" menu

    A relative is running 10.4 on an iMac. The "Window" menu in the Finder has multiple entries with the name of her computer (e.g., "Mary's Computer"). There are no windows visible, and clicking on any of the entries or on "Bring All to front" does noth

  • HT5772 How to cancel downloading update?

    I accidently hit the wrong button. How can I cancel downloading update?