Reload a WEB-Site when BACK-Button clicked

When I click the browsers BACK-Button ...
while programming a servlet - is it possible to make the browser reload a web-Site when the browsers BACK-Button is clicked - and not use a browser-stored version ?

Thank you for your reply. I don't understand all the coding.
Its a little bit over my head . Is the below anywhere near correct ?
Thank you in advance
//add behaviors
    ActionListener myActionListener = new ActionListener() {
      public void actionPerformed(ActionEvent e) throws Exception
        /*if (e.getSource() == myJButtonCalculator)
          new Calculator();
        else
        if (e.getSource() == myJButtonSketcher)
          new Sketcher();
        else
        if (e.getSource() == myJButtonVideo)
          new Grass();
        else*/
        if (e.getSource() == myJButtonBible)
                String[] cmd = new String[4];
                cmd[0] = "cmd.exe";
                cmd[1] = "/C";
                cmd[2] = "start";
                cmd[3] = "http://www.nccbuscc.org/nab/index.htm";
//          cmd[3] = "will.xls";
//          cmd[3] = "mailto:";
//          cmd[3] = "a.html";
//          cmd[3] = "file:/c:/java/temp/a.html";
                Process process = Runtime.getRuntime().exec( cmd );
}; //end of actionPerformed() method
       

Similar Messages

  • When I click on a result of a Google search and then go that web site, the Back button on the toolbar is grayed out and I cannot return to the search results.

    When using FF3.6 and making a Google search, when I click on a result and then go that web site, the Back button on the toolbar is grayed out and I cannot return to the search results without going to History. This does not happen all the time; about 1/2 of the time.
    This problem is not limited to Google, but occurs with other sites as well.

    If you are talking about searches from - http://www.google.com/ - are you logged into a Google account all the time? If so, check your "Search Settings" from the "gear" in the upper-right corner of that Google search page and see if you have '''Open search results in a new browser window.''' check-marked, at the bottom of that preferences page. When that is check-marked and you have Tab options in Firefox set to '''Open new windows in a new tab instead''', you will get search results always opening in a new tab instead of the same tab. As to why that works different for "sponsored links" I don't know, I haven't seen the "sponsored links" for years now, I have a GM script that blocks those advertisements.

  • My Mac will not automatically connect to a web site when I double click

    My Mac will not automatically connect to a web site when I double click.  The Icon blinks but nothing happens.  This happened once before but I don't recall how it was fixed.  I can often (but not always) open the site by using "open with Safari.app(default)

    Firefox 3 will not run on OS X 10.3.9, it requires at least 10.4
    Try one of these browsers to see if you can access Hotmail - [http://www.seamonkey-project.org/releases/seamonkey1.1.19/ SeaMonkey 1.1.19] or [http://caminobrowser.org/download/ Camino 1.6.11]

  • How do I go to a web site when I click on a button ?

    Hello
    I am going a GUI program that would go to a program or a web site when a button is clicked. What do I have to do to access a web site ?
    for instance:     if (e.getSource() == myJButtonBible)
              // go to www.nccbuscc.org/nab/index.htm
            }What do I add to the code to access a web site ? ?
    below is the drive class.
    Thank you in advance
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.border.*;
    import javax.swing.event.*;
    import java.awt.event.*;
    public class TryGridLayout
      public TryGridLayout() {
        JFrame myJFrame = new JFrame("Choose your program");
        Toolkit myToolkit = myJFrame.getToolkit();
        Dimension myScreenSize = myToolkit.getDefaultToolkit().getScreenSize();
        //Center of screen and set size to half the screen size
        myJFrame.setBounds(myScreenSize.width / 4, myScreenSize.height / 4,
                           myScreenSize.width / 2, myScreenSize.height / 2);
        //change the background color
        myJFrame.getContentPane().setBackground(Color.yellow);
        //create the layout manager
        GridLayout myGridLayout = new GridLayout(2, 2);
        //get the content pane
        Container myContentPane = myJFrame.getContentPane();
        //set the container layout manager
        myContentPane.setLayout(myGridLayout);
        //create an object to hold the button's style
        Border myEdge = BorderFactory.createRaisedBevelBorder();
        //create the button size
        Dimension buttonSize = new Dimension(190, 100);
        //create the button's font object
        Font myFont = new Font("Arial", Font.BOLD, 18);
        //create the 1st button's object
        JButton myJButtonCalculator = new JButton("Calculator");
        myJButtonCalculator.setBackground(Color.red);
        myJButtonCalculator.setForeground(Color.black);
        // set the button's border, size, and font
        myJButtonCalculator.setBorder(myEdge);
        myJButtonCalculator.setPreferredSize(buttonSize);
        myJButtonCalculator.setFont(myFont);
        //create the 2nd button's object
        JButton myJButtonSketcher = new JButton("Sketcher");
        myJButtonSketcher.setBackground(Color.pink);
        myJButtonSketcher.setForeground(Color.black);
    // set the button's border, size, and font
        myJButtonSketcher.setBorder(myEdge);
        myJButtonSketcher.setPreferredSize(buttonSize);
        myJButtonSketcher.setFont(myFont);
        //create the 3rd button's object
        JButton myJButtonVideo = new JButton("Airplane-Blimp Video");
        myJButtonVideo.setBackground(Color.pink);
        myJButtonVideo.setForeground(Color.black);
    // set the button's border, size, and font
        myJButtonVideo.setBorder(myEdge);
        myJButtonVideo.setPreferredSize(buttonSize);
        myJButtonVideo.setFont(myFont);
        //create the 4th button's object
        JButton myJButtonBible = new JButton("The HolyBible");
        myJButtonBible.setBackground(Color.white);
        myJButtonBible.setForeground(Color.white);
    // set the button's border, size, and font
        myJButtonBible.setBorder(myEdge);
        myJButtonBible.setPreferredSize(buttonSize);
        myJButtonBible.setFont(myFont);
        //add the buttons to the content pane
        myContentPane.add(myJButtonCalculator);
        myContentPane.add(myJButtonSketcher);
        myContentPane.add(myJButtonVideo);
        myContentPane.add(myJButtonBible);
        //add behaviors
        ActionListener myActionListener = new ActionListener() {
          public void actionPerformed(ActionEvent e)
            if (e.getSource() == myJButtonCalculator)
              new Calculator();
            else
            if (e.getSource() == myJButtonSketcher)
              new Sketcher();
            else
            if (e.getSource() == myJButtonVideo)
              new Grass();
            else
            if (e.getSource() == myJButtonBible)
              // go to www.nccbuscc.org/nab/index.htm
        }; // end of actionPerformed method
        //add the object listener to listen for the click event on the buttons
        myJButtonCalculator.addActionListener(myActionListener);
        myJButtonSketcher.addActionListener(myActionListener);
        myJButtonVideo.addActionListener(myActionListener);
        myJButtonBible.addActionListener(myActionListener);
        myJFrame.setVisible(true);
      } // end of TryGridLayout constructor
      public static void main (String[] args)
        new TryGridLayout();
    } // end of TryGridLayout class
     

    Thank you for your reply. I don't understand all the coding.
    Its a little bit over my head . Is the below anywhere near correct ?
    Thank you in advance
    //add behaviors
        ActionListener myActionListener = new ActionListener() {
          public void actionPerformed(ActionEvent e) throws Exception
            /*if (e.getSource() == myJButtonCalculator)
              new Calculator();
            else
            if (e.getSource() == myJButtonSketcher)
              new Sketcher();
            else
            if (e.getSource() == myJButtonVideo)
              new Grass();
            else*/
            if (e.getSource() == myJButtonBible)
                    String[] cmd = new String[4];
                    cmd[0] = "cmd.exe";
                    cmd[1] = "/C";
                    cmd[2] = "start";
                    cmd[3] = "http://www.nccbuscc.org/nab/index.htm";
    //          cmd[3] = "will.xls";
    //          cmd[3] = "mailto:";
    //          cmd[3] = "a.html";
    //          cmd[3] = "file:/c:/java/temp/a.html";
                    Process process = Runtime.getRuntime().exec( cmd );
    }; //end of actionPerformed() method
           

  • How can I do to change the web site when I open a new tab.

    Dear Friends...
    I cant find information, how to changes the web site when I open a second tab. Example: when I open Firefox my home page is google and that is perfect but when I open a second tab, why appears yahoo as home page? I want to changes that and I cant find how to do it . Thanks

    The normal behavior is to open a blank tab, an add-on will be causing it to display Yahoo. One add-on that does this is the freeze net assistant, if you have that one you can uninstall it and it should revert to opening a blank tab.
    There are add-ons that let you specify what should open in a new tab, such as:
    * NewTabURL - https://addons.mozilla.org/firefox/addon/newtaburl
    * New Tab Homepage - https://addons.mozilla.org/firefox/addon/new-tab-homepage
    Another way of opening the home page in a new tab is to middle click on the home button in the navigation toolbar.

  • How can I "expire" a web page (prevent BACK button access)

    How can I "expire" a web page ?
    I know some sites will display the following message if we click on the
    BACK button in your browser.
    Warning: Page has Expired The page you requested was created using
    information you submitted in a form. This page is no longer available. As a
    security precaution, Internet Explorer does not automatically resubmit your
    information for you.
    To resubmit your information and view this Web page, click the Refresh
    button.
    How do I implement this feature??

    U want to disable back button click
    if yes i think
    javascript:window.history.forward(1);

  • Unlike IE When back button is pressed it takes too long. pleas do something for that. thnx.

    Unlike IE When back button is pressed it takes too long. pleas do something for that. I like firefox and i get to use the back button more often.
    thnx

    In order to be able to find the correct solution to your problem, we require some more non-personal information from you. Please do the following:
    *Click the Firefox button at the top left, then click the ''Help'' menu and select ''Troubleshooting Information'' from the submenu. If you don't have a Firefox button, click the Help menu at the top and select ''Troubleshooting Information'' from the menu.
    Now, a new tab containing your troubleshooting information should open.
    *At the top of the page, you should see a button that says "Copy text to clipboard". Click it.
    *Now, go back to your forum post and click inside the reply box. Press Ctrl+V to paste all the information you copied into the forum post.
    If you need further information about the Troubleshooting information page, please read the article [[Use the Troubleshooting Information page to help fix Firefox issues]].
    Thanks in advance for your help!

  • How to retain the java applet generated code when back button is pressed!!

    I've a jsp page in which i've wirtten the code which specifies the word which i write in the text box, then through the applet i'm showing the word which is written in the text box. It means my applet is running and it show the words which i've written in the text box. Now when i click on submit it goes to the next page and when i click on browser's back button then except the applet generated code everyone retains its values. Is there any way to find it out when it encounter the back button click then applet should be restarted. so in this way without writing the whole application form and in the applet generated code i can submit it again.
    My question is how do i reatin the applet generated code when a click button is being pressed (b'coz for the textbox, textareas everything retains it)
    any suggestions or guidance are most welcome.
    thanks in advance....

    you don't need to navigate explicitly. Just clear the back stack till your specific page and say goback. below is the  code you can use.
     protected override void OnBackKeyPress(System.ComponentModel.CancelEventArgs e)
                        e.cancel=true;
                    RemoveBackStackTillSpecificPage("page2.xaml");
                    GoBack();
    public static void RemoveBackStackTillSpecificPage(string pageName)
    PhoneApplicationFrame frame = Application.Current.RootVisual as PhoneApplicationFrame;
    var previousPage = frame.BackStack.FirstOrDefault();
    if (previousPage != null && previousPage.Source != null)
                    while (!previousPage.Source.ToString().Contains(pageName))
                        frame.RemoveBackEntry();
                        previousPage = frame.BackStack.FirstOrDefault();
            public static void GoBack()
                PhoneApplicationFrame frame = Application.Current.RootVisual as PhoneApplicationFrame;
                LastPageUri = frame.Source;
                frame.GoBack();
    Please mark this as answer if this answers your question
    Purushothama V S

  • Display data when Back button of Browser is pressed

    Hi All,
    Thanks for Reading my query.
    I have an issue with display of data in Jsp page:
    I have 2 JSP pages, wherein i entered data in page1 and clicked submit to see page2.Now i pressed back button of browser and im able to see data which i entered.I require the feilds in page1 to be cleared when back button is pressed in page2.Could any one please tell me how to handle this issue.
    Please help me out.
    cheers,
    sharath

    you can use the HTML header set pragma - no-cache expires - 0 and cache-control - no cache property so whenever you will press back button of browser it will show the message page has been expired. You can find the proper syntax on any HTML site

  • Multiple flash files change when a button click using javascript function

    hi.. am new in flsh...
    i want to multiple flash files change when a button click using a javascript

    <script>
    var count=0;
    function mafunct(newSrc){
        alert("hi");
    var path="a"+count+".swf"; 
    flash+='<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" WIDTH="100%" HEIGHT="100%">';         
        flash+='<PARAM NAME=movie VALUE="'+path+'">';         
        flash+='<PARAM NAME="PLAY" VALUE="false">'; 
        flash+='<PARAM NAME="LOOP" VALUE="false">';
        flash+='<PARAM NAME="QUALITY" VALUE="high">';
        flash+='<PARAM NAME="SCALE" VALUE="SHOWALL">';
        flash+='<EMBED NAME="testmovie" SRC="Menu.swf" WIDTH="100%" HEIGHT="100%"PLAY="false" LOOP="false" QUALITY="high" SCALE="SHOWALL"swLiveConnect="true"PLUGINSPAGE="http://www.macromedia.com/go/flashplayer/">';
        flash+='</EMBED>';
        flash+='</OBJECT>';    
    count++;
    alert(path+"aa");
    </script>
    <button onclick="mafunct()">next</button>

  • How to call web service on a button click in Web UI

    Hi Experts,
    I have a requirement to call/consume external web service on a button click in CRM web UI. Can someone help me with the code sample for invoking web service from crm web ui?
    Thanks in advance.
    Cheers,
    Sumit Mittal

    Consuming external web service directly without xi system in between.
    u2022     SE80
    u2022     Create Enterprise Service-> Choose object type as u201CService Consumeru201D
    u2022     Select URL HTTP destination in the next step
    u2022     Give the WSDL url in the url point
    u2022     Give any package name or store it in the local object.
    u2022     Corresponding proxies and data types will be generated inside the enterprise service tag
    Code sample for invoking the service via report.
    u2022     Create an object of the client proxy type here itu2019s io_clientproxy.
    u2022     Declare input and output parameters as per the structure of the service input/output parameters.
    u2022     Fill in input parameters what your service expect and call the object methods for relevant task.
    REPORT  ZWEBSERVICE_CREATNUPDATE.
    DATA: io_clientproxy TYPE REF TO zzco_user_data_service .
    DATA: output_crnup TYPE zzcreate_or_update_user_data1,
          input_crnup TYPE zzcreate_or_update_user_data_1.
    DATA :
           ls_param_crnup_in TYPE zzcreate_or_update_user_data, " CU input
           ls_param_crnup TYPE zzcreate_or_update_user_data_r, "CU Response
           ls_return_crnup  TYPE zzcrm_user, " CU Response
           ls_arg0 TYPE zzcrm_user.
    ls_arg0-first_name = 'shashank'.
    ls_arg0-last_name = 'testw/ouserid'.
    ls_arg0-org_name = 'Test_Org'.
    "ls_arg0-USER_ID = '369713'.
    ls_param_crnup_in-arg0 = ls_arg0.
    input_crnup-parameters = ls_param_crnup_in.
    TRY.
        CREATE OBJECT io_clientproxy
          EXPORTING
            logical_port_name = 'LP4'.
      CATCH cx_ai_system_fault .
    ENDTRY.
    TRY.
        CALL METHOD io_clientproxy->create_or_update_user_data
          EXPORTING
            input  = input_crnup
          IMPORTING
            output = output_crnup.
      CATCH cx_ai_system_fault .
      CATCH cx_ai_application_fault .
    ENDTRY.
    ls_param_crnup = output_crnup-parameters.
    ls_return_crnup = ls_param_crnup-return.
    IF ls_return_crnup IS INITIAL.
      WRITE : 'User creation failed'.
    ELSE.
      WRITE :  'Process Status : ',ls_return_crnup-process_status,
               /'User Id : ',ls_return_crnup-user_id,
                       /'First Name :',ls_return_crnup-first_name,
               /'Last Name :',ls_return_crnup-last_name,
               /'Org Name : ',ls_return_crnup-org_name.
    ENDIF.

  • In most web sites many web sites, the menue buttons do not appear i have to scroll over the screen untill the cursor changes indicating a button is actually there, and guess which one it is. I am using windows 7 , 64 bit

    In most web sites many web sites, the menu buttons do not appear i have to scroll over the screen until the cursor changes indicating a button is actually there, and guess which one it is. I am using windows 7 , 64 bit

    See:
    * http://kb.mozillazine.org/Website_colors_are_wrong
    * http://kb.mozillazine.org/Websites_look_wrong

  • I am still getting redirected to various web sites when using Safari.  My PC is not affected but my I phone and I pad are.  I have reset my router and changed my admin name and password.  I am still being redirected.

    I am still getting redirected to various web sites when using Safari.  My PC is not affected but my I phone and I pad are.  I have reset my router and changed my admin name and password.  I am still being redirected.

    Chances are you mis-typed a character in the Wifi password and the devices saved that information.  Now whenever you try to connect the device refers to the wrong password and the Jetpack does not accept your connection.  Tell your devices to forget the wireless connection and start over.
    Once you enter the proper WiFi credentials the Jetpack will allow you to connect.

  • Why does Safari 5.1/Lion 5.7 always open the last Web sites  when you open Safari?

    Why does Safari 5.1/Lion 5.7 always open the last Web sites  when you open Safari?
    MacBook Pro 2.33 GHz intel core2 Duo

    Welcome to the iOS world of nonthinking, wherein the OS decides everything for you, whether or not that's what you want. Salient details described in http://www.apple.com/macosx/whats-new/features.html#resume
    See one of these to disable it:
    http://hints.macworld.com/article.php?story=20110918051930924
    http://osxdaily.com/2011/08/01/turn-off-resume-per-app-in-mac-os-x-lion/
    http://restoremenot.info/

  • When I click on certain items such as to close a window nothing happens. In some web sites when I click on a tab nothing happens

    If I open up web sites or applications and I click to close them from the navigation bar at the top nothing happens. Another example is I use My Yahoo and there is a mail button on top - when I click on that nothing happens - including clicking on all the other buttons.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Try to disable hardware acceleration.
    *Tools > Options > Advanced > General > Browsing: "Use hardware acceleration when available"
    If disabling hardware acceleration works then check if there is an update available for your graphics display driver.
    *https://support.mozilla.org/kb/how-do-i-upgrade-my-graphics-drivers

Maybe you are looking for

  • Help with structuring SQL databases for multiple photo galleries..help!?!

    Hello all, As a new PHP/SQL developer I have found great technical assistance from both this forum and from David Powers and his wonderful books. I am at a crucial point in my web development and although I believe I know which direction I need to go

  • HT5655 This doesn't work for me

    I follow this, but I just keep getting to the same place again.  It's just a cyclical error.  I click on the Blocked plug-in then follow the steps, then get the blocked plug-in again.  Any other help out there?

  • Satellite M70-WiFi connection just with WEP or WPA

    Hi, I have the Satellite M70-164 with an Intel PRO set wifi adapter 2200BG with the latest driver. My problem is that I can only connect to networks with security (with WEP or WPA), when I try to connect to "open" wifi networks the computer never est

  • Mail upgrade and import assistant failing after Yosemite install

    I upgraded my friend's macbook pro 13-inche Mid 2010 to Yosemite, everything except iMail seems to be working fine. When I go to launch iMail it tells me that it is "updating your mail database", it proceeds to go into another screen where it is "Mig

  • Csdb issues

    Hi all, we are running 2005Q4 with newest patches. Today we received this: Critical - Automatic backup process (csstored) for /var/opt/SUNWics5/csdbstopped on mail Information:   The  'db_checkpoint'  command failed  for /var/opt/SUNWics5/csdb on mai