Disable Refresh and back  facilty in a jsp page

hi,
I have a jsp page which makes entries in a db. to stop is doing it again (by refreshing the page) refresh facility is to be diabled. I do not want to use cookies or session . Can any one tell me how to disable refresh and back button in a html/jsp page
Atishay

i am bit new with jsp and i do not know how to use synchronization token
howeever i think if we have a hidden input with value=0 and later make it one when entry is made in the db by the jsp page. But the problem is that i do not know how to check the value. Because each time we refresh the page the value of the variable will be initialized so a check can not be made.
Also following will help
<META HTTP-EQUIV="Expires" CONTENT="Fri, 1 Jun 2001 00:01:00 GMT">
but how to take the time of the host machine which will run the jsp page.
Thanks
Atishay

Similar Messages

  • Disable/hide navigation Back button in particular overview page

    Hi All,
    I have to disable/hide navigational 'Back' button on Task overview page. I tried to achive this in WD_HISTORY mehtod but no luck.
    Please suggest me how to do this.
    Thanks,
    Nanaji

    Hi Laxmana,
    I did the same thing as you suggested, by commenting the super class method we can just stop to go to previous page but not all the pages which are stored in back button history.
    My actual requirement is, back button should not be visible to user or should not function anything. User should not use back button to navigate away. user must use 'save and back' or 'save' buttons.
    Thanks,
    Nanaji

  • Disabling FORWARD and BACK Button of Internet Explorer thru JavaScript....

    Hello everybody,
    Can anyone tell me how to disable the FORWARD and BACK Button of Internet Explorer through JavaScript.......If possible give me the code snippet.....

    You can not do this in JavaScript.
    However, if you set the right response headers in the response IE will disable them:
    response.setHeader("Pragma","no-cache");
    response.setHeader("Cache-Control","no-store");
    response.setHeader("Expires","0");
    would do the trick.
    Silvio Bierman

  • Ghostery disables forward and back buttons in version 10

    Forward and back arrows are greyed out and do not function when Ghostery is enabled. If I start in safe mode, without Ghostery, the forward and back arrows function properly.

    -> [[Back and forward or other toolbar items are missing]]
    If the buttons are working in -> [[Safe Mode]], then you need to make sure which extension was causing the problems.
    * [[Troubleshooting-extensions-themes#w_test-for-faulty-extensions|Test for faulty extensions]]
    * When you find-out which extension was the source of problem, Contact the Add-on's Developer about this issue and Report the problem.
    Check and tell if its working.
    Not related to your problem but some of your Firefox Plugins are out-dated
    * Update All your Firefox Plugins -> [https://www.mozilla.org/en-US/plugincheck/]
    * '''When Downloading Plugins Update setup files, Remove Checkmark from Downloading other Optional Softwares with your Plugins (e.g. Toolbars, McAfee, Google Chrome, etc.)'''

  • How to retrieve records from a database and display it in a jsp page.Help!!

    Hello everyone ! im very new to this forum.Please help me to solve my problem
    First i ll explain what is my requirement or needed.
    Actually in my web page i have text box to enter start date and end date
    and one list box to select the month .If user select or enter the dates in text box
    accordingly the data from ms access database has to display in a jsp page.
    Im using jsp and beans.
    I tried returning ResultSet from bean but i get nothing display in my web page
    instead it goes to error page (ErrorPage.jsp) which i handle in the jsp.
    I tried many things but nothing work out please help me to attain a perfect
    solution. I tried with my bean individually to check whether the result set has
    values but i got NullPointerException . But the values which i passed or
    available in the database.
    I dint get any reply for my last post please reply atleast to this.
    i get the date in the jsp page is by this way
    int Year=Integer.parseInt(request.getParameter("year"));
    int Month=Integer.parseInt(request.getParameter("month"));
    int Day=Integer.parseInt(request.getParameter("day"));
    String startdate=Day+"/"+Month+"/"+Year;
    int Year1=Integer.parseInt(request.getParameter("year1"));
    int Month1=Integer.parseInt(request.getParameter("month1"));
    int Day1=Integer.parseInt(request.getParameter("day1"));
    String enddate=Day1+"/"+Month1+"/"+Year1;But this to check my bean whether it return any result!
    public void databaseConnection(String MTName,String startDate,String endDate)
    try
             java.text.SimpleDateFormat dateFormat=new java.text.SimpleDateFormat("dd/MM/yyyy");
             java.util.Date fromDate=dateFormat.parse(startDate);
            java.util.Date tillDate=dateFormat.parse(endDate);          
            java.sql.Date sqlFromDate=new java.sql.Date(fromDate.getTime());
            java.sql.Date sqlTillDate=new java.sql.Date(tillDate.getTime());
              String query1="select MTName,Date,MTLineCount from Main where MTName='"+MTName+"'  and Date between '"+sqlFromDate+"' and '"+sqlTillDate+"' " ;
            System.out.println(query1);
              Class.forName(driver);
             DriverManager.getConnection(url);
             preparedStatement=connection.prepareStatement(query1);
             preparedStatement.setString(1,"MTName");
              preparedStatement.setDate(2,sqlFromDate);
              preparedStatement.setDate(3,sqlTillDate);
              resultSet=preparedStatement.executeQuery();           
               while(resultSet.next())
                        System.out.println(resultSet.getString(1));
                        System.out.println(resultSet.getDate(2));
                        System.out.println(resultSet.getInt(3));
            catch (Exception e)
             e.printStackTrace();
    I Passed value from my main method is like thisl
    databaseConnection("prasu","1/12/2005","31/12/2005");Please provide solutions or provide some sample codes!
    Help!
    Thanks in advance for replies

    Thanks for ur reply Mr.Rajasekhar
    I tried as u said,
    i tried without converting to sql date ,but still i din't get any results
    java.text.SimpleDateFormat dateFormat=new java.text.SimpleDateFormat("dd/MM/yyyy");
             java.util.Date fromDate=dateFormat.parse(startDate);
            java.util.Date tillDate=dateFormat.parse(endDate);          
              String query1="select MTName,Date,MTLineCount from linecountdetails where mtname='"+MTName+"'  and Date >='"+fromDate+"' and Date <='"+tillDate+"' " ;
            System.out.println(query1);
    //From main method
    databaseConnection("prasu","1/12/2005","31/12/2005");I got the output as
    ---------- java ----------
    select MTName,Date,MTLineCount from linecountdetails where mtname='prasu'  and Date >='Thu Dec 01 00:00:00 GMT+05:30 2005' and Date <='Sat Dec 31 00:00:00 GMT+05:30 2005'
    java.lang.NullPointerException
    null
    null
    java.lang.NullPointerException
    Output completed (4 sec consumed) - Normal TerminationThanks
    Prasanna.B

  • JSP and servlets(displaying Data On JSP page)

    Hiii all
    i am new to JSP ...also to servets
    tell me hw to print my data on the JSP page,
    i can print my data on the server,that data i want to print on JSP page
    if u all have e.g's it will be very good
    Thanks in advance
    Take Care
    Rahul :)

    What do you mean "print data on a JSP?" If you simply mean display dynamic content, you should def read up both on sun's resources and other googled resources for JSP walkthroughs...

  • Get the  value and pass it to child jsp page

    Hi All,
    I want to get the attribute value from the adf table in my parent jsp page and again send it to the child jsp page.I'm very new to adf.Please any body give me a example for this.Please help me.
    Thanks in advance!

    Sorry......
    I'm using Jdeveloper 11.1.1.5 version.In my adf application i have two jsp pages.One is parent.jspx and another one is child.jspx.In my parent.jspx page i have adf table.Now i want to get the attribute value from adf table which is in parent.jspx page and i want to send that values to the child.jspx page.How can i do this.Please give me the example.
    Thanks!

  • How to create and place two dropdowns in JSP page

    How do I create two dropdowns side by side in a JSP page? Also, hw do I place them side by side so that there's no overlapping?

    How do I create two dropdowns side by side in a JSP page?
    Also, hw do I place them side by side so that there's no overlapping?
    Also, how do I populate these dropdowns from the database and
    include them both in the final page?None of those questions has anything to do with Javascript (just like this forum has nothing to do with Javascript).
    If you want 2 select fields side by side, put them side by side in the HTML code or put them in adjacent table cells if the area they are in is forcing the second to the next line. This is all an HTML issue, nothing to do with JSP.
    For the last question, you get the database data and you write the select options dynamically based on that. Get a result set, loop thru it.

  • Why does the foward and back button no longer show page history ?

    the older version of mozilla/firefox you had the option of seeing previous pages beside the foward and back buttons. rather than going back to each page. also the web pages that were suggested for your search let you know if the web page or site good or bad.

    The arrow to open the tab history of the Back and Forward buttons has been removed in Firefox 4 and later.
    Use one of these methods to open the tab history list:
    * Right click on the Back or Forward button
    * Hold down the left mouse button on the enabled Back or Forward button until the list opens
    You can look at this extension:
    * Backward Forward History Dropdown: https://addons.mozilla.org/firefox/addon/backforedrop/

  • HP8600 Jams printing front and back when 4 or more pages

    System- Windows 8.1 PrinterHP Officejet Pro 8600 N911a.  Model N911a Product number CN578A.  Firmware version CLP1CN1322CR.  Duplexer: Installed.  ADF: Installed.
    When printing front and back multiple pages of 4 or more pages the printer jams in the flip chamber.  Both settings Printing [Front to Back] or [Back to Front] will jam.
    I believe this occurred after going to 8.1 from 8.0, however, I am not sure.
    Lameduck_9 

    Hello @Lameduck_9 , and welcome to the HP Forums!
    I can see from your post you are experiencing jam issues.  I would like to help!
    I would suggest Uninstalling the Printer Software.
    Once it is uninstalled, I would suggest putting your system into clean boot mode within the Microsoft configuration.  You can do so by following this document: How to perform a clean boot in Windows.
    Once the computer is in clean boot mode, I would suggest reinstalling the HP Printer Install Wizard for Windows.
    Good luck and please let me know the results of your troubleshooting steps. Thank you for posting on the HP Forums!
    Please click “Accept as Solution " if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks" for helping!
    Jamieson
    I work on behalf of HP
    "Remember, I'm pulling for you, we're all in this together!" - Red Green.

  • How do I make the refresh, and back buttons work? Since I upgraded to FF 5 they no longer work. Also the roboform bar has to be opened everytime. It's not automatich anymore. Thanks!

    My refresh button doesn't work. Back Button doesn't work. They only work on the very first FF page that is opened. Any that I open from then on, those buttons don't work. The roboform bar isn't opened either. I have to open it every time.

    I would also like to add that none of the emails I send are going anywhere. So there's that.

  • My emails are appearing along the top of the page in the tool bar area? how do i get rid of this and back to the regular email page

    I opened my Mozilla yesterday and noticed my email page format was different then after a second, I noticed all my emails were now appearing along the top of the page in the tool bar area below "Fine Edit View Go ...etc" I'm not sure what happened. PLEASE help me I'm sure it's probably an easy fix, however I don't know how to fix it :)~ Also they are oldest email first, and since I normally save them for 45 days before deleting, I cant seem to get to the most recent email first. Ugh.
    Truly appreciate your help.

    This is what happens when you continually open messages in tabs but never close them. Pretty soon all you have are message tabs showing and you have pushed the Inbox off the screen.
    Get in the habit of closing message tabs after you read them.
    To get out of your situation now, right click one of the tabs and select Close Other Tabs. Then use the x to close the last one.

  • I downloaded Bearshare and i became my homepage and I have tried everything to get rid of it and it will not go away how do I get rid of this program and back to the firefox default page being my home page?

    I have tried all the troubleshooting and everything.

    Follow these steps please.
    #In the location bar, type '''about:config''' and hit Enter.
    #In the filter at the top, type: '''keyword.URL'''
    #Double click it and remove whatever's in there. You'll see it revert to "Default" and "String".
    #Go to File | Exit
    #Restart Firefox, go to the site you want to set as your homepage.
    #Go to '''Tools '''| '''Options '''| '''General'''.
    #Make sure it says "''Show My Homepage''" in the first dropdown menu.
    #Click the button called "'''Use Current Pages'''" to set the homepage to the one you have on the screen.

  • How to execute a backing-bean method before loading JSP Page?

    Hi everybody.
    Scene:
    An AdfForm, with
    -SelectChoice, referenced to a <list> of pageDef, which is referenced to an ADF BC.
    Goal:
    -Executing the query of the ADF BC before load the SelectChoice, to load the correct values.
    A good question to know:
    Exists any way to execute a method of backing before loading a JSP Page?
    Any similar to onload method of javascript. It could be fantastic.
    Thanks in advance,
    Jaime

    hi Jaime
    If I understand correctly, you are using the ADF Model for data binding.
    Because your goal is "Executing the query of the ADF BC ...", maybe you can also consider to refresh an executable in your Page Definition.
    See also "10.5.5 How to Use Refresh Correctly for InvokeAction and Iterator Bindings"
    at http://download.oracle.com/docs/html/B25947_01/bcdcpal005.htm#BJECHBHF
    It says "... You can use the Refresh property on iterator bindings and invokeAction executables in your page definition to control when each are evaluated during the ADF page lifecycle, either during the prepareModel phase, the prepareRender phase, or both. ...".
    Although you have posted your question in a structured way, which is a good thing, I think it would help to understand your question if you can explain how you determine "the correct values" for your list, what is varying?
    success
    Jan Vervecken

  • Cancel- and main-button dynamically generated using JSP-pages

    Maybe a HOWTO for the Jdev-team.
    HOWTO get rid of the delete and main-button in your jsp-pages?
    Very simple!
    Go to the container_bottom.jsp page in your webapp/jsp-folder and delete the code for the cancel-button => now the user can render his own buttons by using a header.html, contents.jsp and footer.html for the jsp-pages.

    We tried the same thing you are trying to do and got
    very far, but it quickly became very complicated. We
    realized it was just simpler to use the screenflow as
    intended.
    By this I mean, if your parent form has 4 buttons
    (A,B, C and SUBMIT), you should design different
    paths in your screen flow for each button. so when a
    user clicks button A, the parent form submits back to
    Fuego engine, engine looks at screenflow and send
    them down the button A path to the Form A. When they
    hit submit on Form A, screenflow goes back to parent
    form.Hi, bcespinola:
    Our team finally decide use jsp with YUI (Yahoo User Interface Library) to achieve this design. Wish this could help you. All popup window would be replaced by Dialog of YUI. Thanks for your help.
    Vince

Maybe you are looking for

  • Web Cam will not work

    I recovered and reinstalled all software but the Webcam will not operate.  There is not Camera listed in the Imaging devices but under sound, video and gaming there is the Cyberlink webcam virtual driver listed. I did a hard reset by removing the bat

  • Inbound idoc status 53 but nothing is updated in transaction level

    Hi All I am using we19 test tool to process routing idoc LOIROU02 (inbound processing)with some test values. After executing using standard inbound function module in R/3 4.7, I am getting a status 53 ( application document posted). This idoc is used

  • How do I update my iPhone to IOS 5.01 w/o losing my content

    When I hook my iPhone 4s up to iTunes on my laptop (PC), if I update my IOS to 5.01, it says I will lose the3 purchased items on my iPhone since I'm not synched with the iTunes on my laptop but, rather with iCloud. Should I go ahead with the IOS 5.01

  • Range problems

    I have an airport express and im using an 802.11b card. right now im 20 feet from my station through no walls, just across the room, and I have about half signal strength. why am i not getting the 150ft apple advertises? why not even 50 ft? I have fr

  • Is the SCJA certification required before you can be SCJP certified?

    Hello, my question is, do I have to be SCJA certified before taking the SCJP test? And if it is not required, do you suggest that I take SCJA anyway? It seems to me that if you're SCJP certified, then chances are you probably already know the Associa