How to expire a page

Hi,
Anybody knows how to expire a page,for example
if someone submit data on one page and is redirect to next
page,if he hit back button of browser then he must see
expire page.
Thanks in advance.

I usually put like this:
response.setHeader("Pragma", "no-cache");
response.setHeader("Cache-Control", "no-cache");
response.setDateHeader("Expires", 1);
You will need to add this code to doGet() and/or doPost() methods.

Similar Messages

  • How do expire a page in Java Studio Creator

    Hi There,
    How do expire a page in Java Studio Creator ?
    When pressing Back button, I would like to show "Warning: Page has Expired" on the browser.
    Thanks.

    Could you modify the JSP page to include the following
    lines and try
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
    <META HTTP-EQUIV=Expires CONTENT="now">
    <%
    response.setHeader("Pragma", "No-cache");
    response.setDateHeader("Expires", 0);
    response.setHeader("Cache-Control", "no-cache");
    %>

  • How to expire the page immediately ?

    which one(s) or all i should use to expire the page immediately ?
    response.setHeader("Pragma", "no-cache");
    response.setHeader("Cache-Control", "no-cache");
    response.setDateHeader("Expires", 0);
    response.setDateHeader("max-age", 0);

    which one(s) or all i should use to expire the page
    immediately ?
    response.setHeader("Pragma", "no-cache");
    response.setHeader("Cache-Control", "no-cache");
    response.setDateHeader("Expires", 0);
    response.setDateHeader("max-age", 0);"Expires" = 0 means it's not in your control (use 1 instead). Same for max age.
    Cheers!
    ***Annie***

  • How to make the page expired when user click back

    how to make the page as expired when i click back button on the browser.
    i want a better way.
    actually i have a timer.when it reaches 00.00 then the expired page will be called automaticlly using location.href="expired.jsp" then if the user clicks back it should not show the previous page.this concept is applied with paging concept
    response.setheader is not working ...
    i have redirect when click back using
    <body onunload>....i call another page here.
    but it is not a good way.
    so pls help me to solve this problem
    using session or another good way

    Use this instead.
    Frame.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);

  • How do I transfer Pages from one user account to another

    How do you transfer Pages from one user account to another on the same Mac?

    Welcome to the Apple Support Communities
    If you haven't modified anything, Pages is installed on /Applications. All users have access to this folder, identified as "Applications" on the Finder sidebar, so you don't have to move anything, because Pages will work on all your users.
    If you have installed Pages on ~/Applications (being ~ your user folder), then you have to move Pages to /Applications. After doing this, you will be able to access to Pages on all users

  • How to print last page in sap script in ladscape format?

    Hi all,
    can any 1 tell me How to print last page in sap script in ladscape format?
    Thanks In advance.
    Pravin

    Hi Pravin Sherkar,
    we can do this in SAP Scripts.
    we need to create two pages, one of landscape and another of potrait.
    now after filling the data at last we need to call the page which is of format landscape using START_FORM  function module.
    You can use condition &PAGE& = &FORMPAGES&.
    Please check this link
    Printing Portrait/Landscape in sapscript
    Re: Landscape and potrait in same layout?
    http://www.sap-img.com/ts013.htm
    Best regards,
    raam

  • How to print blank page in script

    Hi all,
    how to print blank page in script

    Hi,
    Try the command /: NEW-PAGE. Let me know if it is working.
    Ray

  • How to add addtitional pages in design view?

    How do I create additional pages in design view?  I have tried using NEW PAGE AFTER, but that doesnt add another page in design view, like I need. 
    I am creating a report that uses 8 subreports per page to dynamically create labels.  Currently I have a report header, and am using the page header to arrange the subreports so the top of each subreport prints on the top of each label.  The fields in the subreports can grow, and fill in the label from the top down. 
    I need to create a multiple pages using this format, but I dont know how to add more pages in design view.  Essentially I need subreports 1-8 on page 1, 9-16 on page 2, etc.  I would like to preserve the formatting I have created thus far, but I can always change it if I have to.

    In attempting to create the label sheets I needed, I ended up creating 14 separate reports (which report on 6 individual queries), because there are 14 pages worth of labels that need to be created.  What I wish to accomplish is to condense these 14 reports down to 6 reports.  One for each query.  What I absolutely cant find a way to do, is to get Crystal Reports to allow me to customize subreports on consecutive pages.  Again, I have 8 subreports on each page, which have been formatted to fit on 8 labels when printed.  Each subreport is identical in design, but has a different range selected (i.e. my driving value in each subreport has been modified with Select Expert to be between 1 and 5, or 6 and 10, or 11 and 15).  This is how I have been able to return 5 consecutive results on each label, with the next label returning the following 5 results. 
    My ultimate question:  Is it possible to create a multi-page report using this method?

  • How to remove blank pages from report

    Hi All
    i have a condition where i have to display the record only when trxn lines are available for that record ,inside my for each group condition i put the if condition having a count variable so if count is not zero then only the record will be displayed ,it works but problem is it shows blank pages for those records.
    any clue would be very helpful.Thanks in advance
    Thanks
    Pratap

    Hi All
    The solution of this issue is given in below mentioned thread
    How to avoid blank page in BI Publisher
    Thanks a lot to Vestrini :)
    Thanks
    Pratap

  • How to open web pages from japplet??

    Hi
    Does anybody know how to open web pages from java japplet??
    Any help is apreciated!
    zick

    the getAppletContext() method of the Applet class will get you an AppletContext, with which you can call the ShowDocument(URL url) or ShowDocument(URL url, String target) method...
    check it out at http://java.sun.com/j2se/1.4/docs/api/java/applet/AppletContext.html
    have a good one :)
    Jay

  • How do I set Page Width to Multiple Pages?

    How do I set Page Width to Multiple Pages?
    I notice when Cross Tabs are used, the report spans over several pages in width. Can I set this option without using a cross-tab? Since I am having trouble finding a paper width that is 100 inches wide, I was thinking of just using multiple pages.
    Thanks,
    Linda

    Hi Linda,
    Try inserting an OLEDB object and select a bitmap and insert a blank bitmap in report header. Now go to preview and right click on OLEDB Object go to format graphic>picture>change the width of the picture
    If the width exceeds more than the width of the page then it create virtual pages.
    Hope this helps!
    Raghavendra

  • I bought an iPad and an iTunes card, I want to buy an application from the Apps store but it only gives me the option of credit card.  How can I buy Pages with my iTunes card to my iPad? thank you

    I bought an iPad and an iTunes card, I want to buy an application from the Apps store but it only gives me the option of credit card.  How can I buy Pages with my iTunes card to my iPad? thank you

    Have you redeemed your iTunes card to an account associated with an Apple ID?
    Once you have your iPad associated with an Apple ID AND you have an account with a credit card associated with the same Apple ID AND you have some 'store credit' (from redeeming your iTunes card) then purchases use the store credit before they charge the credit card, so you should be ok!
    Personally, I use 'store credit' as a way to monitor whether or not there have been any 'unauthorised' purchases because as soon as the store credit is zero, the security code from the credit card is needed for further purchases!  It does mean that I have sometimes to top up store credit before making a purchase, but 'better safe than sorry'! 

  • How do I prevent Pages from changing earlier parts of a document when I am in an 8 page newsletter. Going back to check something and items are jumbled up!

    How can I stop Pages from changing parts of a document when I am progressing through an 8 page newsletter. When I go back to check something some headings have moved and been put out of context. I can't lock the individual pages of the document to prevent this happening.

    The Amazon iWork '09 is a DVD in a boxed set.
    Downloading is transferring something from the Internet.
    I think you are talking about not having a DVD drive?
    To install the DVD version, either get an external USB DVD drive, they are cheap on eBAy or borrow another computer and drag the iWork Installer onto a USB Flash Drive and install from that.
    Peter

  • How do you combine pages from separate PDFs?

    How do you combine pages from separate PDF files into one document?

    I use Adobe Acrobat for this.

  • HT204053 how do i move page and numbers documents from one icloud login to another?

    how do i move page and numbers documents from one icloud login to another?
    I had to change my email address whcih meant new apple login.
    I have a number of docs in iwork/pages and iwork/numbers.  How do I transfer them to my new login?

    There's a couple of ways but my tip backing up your documents in the cloud is as good as any.

Maybe you are looking for

  • Preview.app ignoring system prefs, bug?

    greetings, switched to 10.7 recently.  seem to be having a problem with preview.app. i have various setting saved as follows: system pref -> general:      restore windows... = unselected      highlight color = Gold      show scroll bars = always syst

  • Expandable Menu in Java Swing app

    Hello JFriends, is it possible to create a expandable menu in java swing app? I am thinking of something like menu in MS Visio: http://img32.imageshack.us/i/menuip.jpg/ It works like that: When user click on a bar it expands (with nice animation) and

  • Problem with adding Twitter widget

    Hi, I'm trying to get Twitter Collaboration widget up and running on cp7, but... When I enter the Version and module name stuff I get error: Registration Failed.Internal error occurred: IO Error. Send a mail to [email protected] for assistance So, th

  • How to display TIFF images?

    Hello all. My web application needs tiff images viewer with a very primitive functionality like zoom. I'm a new in working with graphics and it seems like java.awt.image package doesn't support TIFF images format. From searching this forum I understo

  • Looking for Flash 7 Plug-in

    I need to get a hold of this for some OS9 machines running Moz 1.3.x. The closest thing I found was http://kb.adobe.com/selfservice/viewContent.do?externalId=d9c2fe33 which references http://download.macromedia.com/pub/flashplayer/installers/current/