How to code the Back button

Hi everyone,
In my application on a perticular jsp page i had a back button.On clicking this back button one should go to the previous page.Can anyone suggest me how to code for this particular back button as all my efforts to code that button are in vain. I need this urgent.
Hope you will help me,

<input type="button" name="back" value="back" onclick="history.go(-1)">

Similar Messages

  • How to handle The Back button on Module Pool screen

    Hi Gurus,
                  I have created a module pool screen. In that screen I have used some input/output fields(text box) which i have marked mandatory by making the input field as "required" under program tab.
    now when running the screen if no data is entered into these mandatory input field then BACK button does not work. First I have to enter some data into the input filed only then the BACK button works. How should i code so that the back button works even without entering the data into these mandatory fields.

    hi,
    use AT EXIT-COMMAND with the module.
    eg. module user_command at exit command.
    then there will be no problem.

  • How to get the back button if we to go the 2nd drill down report??

    Hi,
    I have a drill down report for the main report. And have detailed drill down as in 1st report>2nd report>3rd report.
    But once i goto drill down, the return button is there which directs to main report i.e. 2>1,
    But once i goto 3rd, i do not get the back button so that i can access reports in 3>2>1, instead its going directly to 1st from 3rd.
    hope i have made the point clear.
    Someone suggest me how do i get the back button??
    Thanks!!

    use the below code in Narrative view
    <script&gt;
    function goBack()
    window.history.back()
    </script&gt;
    <input type="button" value="Back" onclick="goBack()"&gt;
    If helps mark
    Edited by: Srini VEERAVALLI on Feb 13, 2013 12:08 AM

  • ADF Faces (JDev 10.1.3): How to support the Back Button

    Hi,
    when I scroll through a result set, rendered as a input form with navigation buttons, then use the browsers back button and then try to go to the next row using the 'next' navigation button, I always get an exception: JBO-29000, JBO-35007, JBO-25013
    The sample application was build using JDev 10.1.3, ADF Faces and Business Components.
    I have read through the new Oracle Dev Guide and found some parameters concerning state management and tested different settings. The most promising setting:
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>client</param-value>
    </context-param>
    <context-param>
    <param-name>oracle.adf.view.faces.CLIENT_STATE_METHOD</param-name>
    <param-value>all</param-value>
    </context-param>
    Regardless of which setting I used, an exception was prompted.
    My questions:
    Are there addtional settings to configure to make an ADF Faces app 'back button' agnostic?
    Is it an ADF Faces or a JSF problem?
    What are your experience and how do you solve the problem?
    I have no idea how to solve the problem.
    Any hints are welcome!
    Thanks,
    Markus

    Hi Marcus,
    we had the same problem in UIX (JDeveloper version 10.1.2) and the official stance of Oracle (we had created a TAR on metalink) was that it was a general webapplication problem and not 'supported' by ADF.
    We created a solution by creating a filter that checks a sequence number in the pages. Each page request was checked and the sequence was increased. The <form> on the pages needed to send the sequence with each request.
    If the user used the backbutton then the sequence would be out of order. We would redirect the user to an error page and rollback the complete model.
    This was our base solution. What we also tried was to use the passivation mechanism of the application module (of Business Components) we would save a snapshot after the rendering of each page and if the user used the back button and the sequence was out of order we would rollback the application module to that snapshot. However after a COMMIT you cannot rollback ofcourse and it gave us some troubles.
    We finally sticked with the base solution and gave the user buttons in the application to go 'back'.
    Regards,
    Robert

  • Does anybody know how to fix the back buttons?

    The back button in the browser doesn't seem to be working in my JSP page by default. Is there a code(JS or anything) I need to place in the JSP file to make the back button work?

    Hi Onamika,
    The back button in the browser doesn't seem to be working in my JSP page by default !!
    Did u disable the back button using Javascript in any of ur JSP codes in the previous pages ? If u did so, please re-enable it using Javascript again.
    If u mistakenly opened some site that has disabled ur browser's back button, then probably the only way to retrieve it back is to shut down IE, then restart ur system and then re-open that website again....but make sure not 2 go 2 that page that disabled the button.
    Hope this helps.
    Cheers !!
    Sherbir.

  • How to disable the back button when displaying a form

    Hi ,
    i have form A calling form B, when form B is displayed i want to disable the
    back button in the explorer so as not to allow the user from going back to
    form A.
    thanks.

    When you open a new window, call following javascript function also to disable the "back" button.
    window.history.forward(1);
    It will work.

  • How to move the "back" button to the top ?

    Hi there,
    I had some sub-menus and iDVD auto generate the "FORWARD" and "BACKWARD" buttons in the shape of a triangle. Problem is this buttons are alwayd at the bottom and I do not seem to be able to move the buttons around.
    Any tips on how to move these buttons to other places ?
    Thanks

    Old Toad wrote:
    You can't move them.  Those are hard coded into the themes.
    OT
    Thanks OT ... been trying for hours to move them !!

  • Disabling the Back button

    Hi
    How to disable the back button in the Internet Explorer in Java or Jsp or Servelts.
    Thanks in advance

    Why are you repeating the question? You posted the
    same question two days ago:Well, that was a long time ago. Technology has
    advanced since then and might have provided a
    solution.:)

  • Deactivate the back button when i logout

    I am creating webpage with login / logout. How to deactivate the back button when i logout. and clear cookies

    There is a hard fix for this...but i don't whether this is a current approach..
    Put the javascript in the head of the page
    history.go(1);
    This virtually disables the back button..i.e when you click the back button it immediately redirects to the present page..

  • 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

  • How do i get the back button on my android device to function right?

    How do i get the back button to got back to the previous screnn I was on?

    I usually use a code such as...
    stage.addEventListener(KeyboardEvent.KEY_DOWN, backKeyGo);
    function backKeyGo(e:KeyboardEvent):void
        if(e.keyCode == Keyboard.BACK)
         e.preventDefault();
         if(options_mc.visible == true){
           //i use the above line in case the options menu has been clicked
             options_mc.visible = false;
             //them i remove any event listners that the options menu may have added  
            }else if(options_mc.visible == false){
             //add your code here to go back to previous page , frame etc
             //remove any eventlistners

  • ALV: OOPS: How to identify when the BACK button is hit?

    Hi All,
    I have a requirement in which when the BACK button on the ALV output is hit, i have to leave to the Original Selection Screen.
    I know that using SET SCREEN 0. this can be done. But i'm unable to find the point at which the Event about the BACK button is triggered.
    How can i identify if the button hit was the back button?
    Thanks in advance,
    Jr.

    Hi Jr,
    u declare sy-ucomm in data decla.
    in code try this out.
    Case sy-ucomm.
    when 'BACK'.
    leave to screen#. " # For the selection screen (i dnt think it is 0).
    u obviously have to set the PF status for the same by SE41 and in Aplication, u give name as BACK for the back symbol.
    I hope is will help.
    Reward if useful
    Thanks
    Sujay

  • How to get the values retained on clicking the back button in jsp page

    Hi All,
    I had two jsp's search and results. In the search page when i enter some values in the text fields, the rsults will be displayed for that search criteria. I had a back button in the results page. When i click on this back button i will get back to my search page. I am using the following code for this back button.
    <INPUT TYPE="button" VALUE='Back' onClick="javascript:history.go(-1)" class="button">
    Now the problem is when i get back to search page using this back button, i am not able to get the values in the search page which i entered, i am getting all blank values. What should i change to get these values back in the search page. Should i maintain any sessions for this?

    You have no control at all over the back button process. To the server, it's indistinguishable from the user simply tying the URL of your search page. So, you need to store this data server side*.
    When your search page is submitted and processed, store the values you received for each of the fields into the user's session. Then, when the search page is generated, check the session for these values, and for any values that are not null, put their values into the html as the default values for the textboxes and controls you are using. This lets you handle the whole matter on the server's side.
    *barring convoluted, unportable, black-magic javascript trickery which you should definitely avoid                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Before the recent updates to Firefox, clicking on the back button always brought me back to the same place on the page where I had been, but now it brings me to the top of the page. How do I restore the previous feature?

    Before the recent updates to Firefox, when I would go to another page in the same window and then clickon the back button, Firefox used to bring me back to the same place on the page where I had been, but now it brings me to the top of the page, meaning that I have to laboriously scroll down to the old place. How do I restore the previous feature?

    That change was made in Firefox 4, 6 months ago.
    Click-hold the unified Back / Forward button <br />
    or <br />
    right-click it to get the Back / Forward history for that tab.
    Or install this extension to get the old "drop-marker" button restored. <br />
    https://addons.mozilla.org/en-US/firefox/addon/backforedrop/

  • I used to be able to go back several pages but when I upraded to this forefox version, I can only go back one page at a time. Upon hovering on the back button, it doesnt show the previous pages i have been to. How can i get the feature again?

    How can I go back several pages? The back button no longer displays multiple previous pages

    Click-hold the unified Back / Forward button, or right-click it to get the Back / Forward history for that tab.
    Or install this extension to get the old "drop-marker" button restored. <br />
    https://addons.mozilla.org/en-US/firefox/addon/backforedrop/

Maybe you are looking for

  • MacPro Hum and Airport Problems

    Well…first post here and i wish it was more…positive. I love my shiny new MacPro but it does some pretty annyoing things. And I'm sure I'm not the only one experiencing these. When i got my MacPro everything seemed to work perfectly. Absoluetly silen

  • My Zen Xtra fr

    My Zen Xtra froze in the middle of uploading music to it. None of the buttons work, and I can't even turn it off (to access Rescue Mode, or download the new firmware). If I press Reset, will it erase everything on its hard dri've? I've never had this

  • Failed to Install 9i SCM under Oracle9.2.0 on Redhat 7.3

    Hi, I've installed Oracle9.2.0 on Redhat 7.3 successfully. Next I run the installer for 9i SCM I receive : "Error invoking target install of makefile /opt/oracle/product/9.0.1/plsql/lib/ins_plsql.mk" error. I have commented out the LD_SELF_CONTAINED=

  • Adobe Dreamweaver cc won't open

    I am having a hard time with my Adobe Dreamweaver CC program opening. When I open it up it crashes with a message saying it cannot find the menus.xml file. I have uninstalled and reinstalled the program and get the same results. Help!!

  • Smartform mail

    Hi, I am sending the smartform as mail content using the CRM_ISA_AUCTION_SMART_FORM method present in class CL_DOC_PROCESSING_CRM_ORDER. I have a standard text displayed in smartform. In this i am using smartstyle and paragraph format in which i have