How to resubmit the form when back button pressed

Hi,
In my application, iam implementing searching,
when i submitting the form, i got some records and i navigated all the results through next and previous buttons.
Problem occurs when i clicked on back button, it is showing "page expires and asking for resubmit the data".
How can i show the previous page, when user clicked on back button.
Iam using struts 1.0 and ibatis
Please help me out.
Thanks in advance,
Mohan

Hi mohan,
try to store your search indices in a vector and put that vector in the session scope. at page first loading you get the first index from your vector and pass it in the request scope in your action class, due to the page you have to find a way to understand the passed index in request scope and translate it to the searched word location.really I have not a code sample, but it is just an idea.
feel free to ask me.
Thanks.
Ahmad Elsafty

Similar Messages

  • How to Unload the form when the user presses Escape Key

    Hi all
    I have tried several triggers for unloading the form when the user presses escape key,but none of them worked. Could any body give the trigger name and the code that unloads or closes the form when the user presses escape key.

    Hello,
    Change the EXIT entry of you ressource file:
    27   : 0 : "F4"             : 32 : "Exit"Francois

  • How to get the tab when is it pressed?

    I have the following situation:
    I have an array of JTextField inside a scroollpane. The size of my array is nine or ten depends on some rules. But my window show just four JTextField. So I would like to know how to get the event when I press "tab", just to show the others JTextField while I'm pressing "tab". Because I need this event to scrooll down or scrooll up.
    I tried the keylistener, but when I press "tab" any method(keypressed, keyreleased, keytyped) is called.
    I also tried the focuslistener. If this event I could scrooll down or scrooll up, but I couldn't do both!!
    Can somebody help me??
    Thanks anyway!!
    Gin

    JTextField implements Scrollable interface, which provides information to the enclosing container such as JScrollPane.
    Hence when the tab event is fired, you can compute the Rectangle area that should be visible and then call the 'scrollRectToVisible()' method in JTextField. This will inform the JScrollPane to scroll to the rectangle that you mention.
    HTH

  • Try to debug the query when save button pressed

    Hi, could some body tell me how can I see the SQL statement when the trigger is executed. I have a save button, when it is pressed it does a commit to insert data to database. I would like to see a sql statement something like : "insert into xxxx (xxx,xx,...) values (xxx,xx,...). I checked the System.last_query but it still shows the select statement to get into the form. Not the actural LAST STATEMENT. please help!

    Hi!
    If you commit the form and insert data after that,
    that data will not being commited to the database and got lost until you use
    something like forms_ddl ( 'commit' ); after the insert.
    :system.last_query, which is the very last query of a block in your form,
    will never show an insert in any trigger.
    May a commit-trigger is not a good place for an insert.
    But anyway, hope this help you.
    Regard
    Stauder

  • How to Capture the event when minimized button is clicked of a JFrame?

    Hi All,
    In my SWING application, I want to do something when the minimized button is clicked. But not able to understand how to do that.
    My basic requirement is like that, if I minimize the JFrame, it should be minimized to system tray with an icon. Again when the icon is clicked, the frame should be maximized in the Windows.
    Also, how to make my JFrame visible/invisible. If I close it, then the process will got killed... that I don't want to happen. Should I us setVisible(true/false) for the frame... Please suggest...
    Thanks,
    Ujjal

    There could be some mistake in my basic understanding... Anyway this is what I wrote...
    import java.io.*;
    import java.awt.*;
    import javax.swing.*;
    public class WindowIconify extends JApplet
         JFrame jf;
         JPanel jp;
         public void run()
              jf = new JFrame("test");
              jf.setSize(200,200);
              jp = new JPanel();
              jp.setBackground(Color.BLACK);
              jf.add(jp);
              jf.setVisible(true);
         public boolean handleEvent(Event event)
              if ( event.id == Event.WINDOW_ICONIFY)
                   System.out.print("iconifying");
              return true;
         public static void main(String args[])
              WindowIconify wi = new WindowIconify();
              wi.run();
    }

  • How to Show new Form when play button click?

    Hai all,
    i have 3 file. the first is quiz.as that contain two button. play and invite friend.quiz.fla. and quizapp.***. when i click play button i want to show the quiz that store in quizapp.as. int the quiz.as i have the mouse event that call quiapp.but when i run i got an error:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at QuizApp/createButtons()
        at QuizApp()
        at Quiz/playQuiz()
    in createButtons(), i create three button next,prev and finish.
    whereas, in my quiz.fla library i have drag the button into my library but the error show nuul object reference for the button that i have created. can you help me to give some advice or sample code??

    Can you please elaborate more as the problem is not quite clear.
    However if you have the button instances placed on the stage already check if you have tick the "automatically declare stage instances" in your publish settings.
    Attach your code in a zip on this forum may be we can solve it then.
    P.S. :- Also you can access these buttons available in stage only in the document class.

  • Quiz Issues - Not highlighting selected answers when 'back' button pressed

    Any help would be very much appreciated for this problem.
    On Captivate 5.5. and have a few quizzes with anything from 18 questions to 37, the user enters their name and it moves onto the question page.
    For example, the user answers question one and goes forward, then goes back one and the answer is no longer selected but the question is locked. When the user comes to review the quiz, it now says the question hasn't been answered when is has been and obviously doesn't get a mark.
    Anyone else experienced this or have a clue how to fix it? My preferences are as follows:

    Lilybri, I'm not sure if I explained myself well enough in my original post.
    User answers question one - presses submit button. CP moves to next question, no problem.
    User then answers question two, presses submit button.
    User moves back to question two and the button they had selected is no longer selected and the question is locked (it should be locked obviously, but CP should show which answer the user selected).
    When you review the quiz it claims 'you did not answer the question completely'. When you had selected something. Also in tests, it was found it knocked off two points from the user sometimes.
    I've just tested one this morning and it seems to be it'll sometimes happen on first go, or you have to move forward and backwards a few times for it to start up this behaviour. Any help is appreciated.
    https://apps.kcadeutag.com/cbt/CBTs/questiontester/questionsformodule1.htm
    Is a link to one of the modules.

  • How is when a button pressed a report will come to the same page !!!

    Hi all,
    I wonder that is it possible to bring a report to the page as a region but only when a button pressed in apex .When ı clicked the go button for example ı want to list a report in the same page.
    but I dont know how .If is this possible can you explain me please.I need help!
    Thanks!

    Create your report in a region as normal.
    Create a second region and in this region create an item eg p171_item.
    In the same region create 2 buttons
    Get Report and Reset (branching back to same page).
    Create 2 page processes (PLSQL) on submit after computations
    1. GET REPORT
    DECLARE
    v_item number;
    Begin
    select 1 into v_item from dual;
    :P171_ITEM := v_item;
    end;
    2.RESET
    DECLARE
    v_item number;
    Begin
    select 2 into v_item from dual;
    :P171_ITEM := v_item;
    end;
    Tie the processes to the buttons.
    On your report region put a condition
    PL_SQL RETURNING BOOLEAN
    IF :P171_ITEM = 1 THEN
    RETURN TRUE;
    ELSE
    RETURN FALSE;
    END IF;
    Now by pressing the buttons the report region is opened and closed.
    Now hide P171_ITEM.
    Gus

  • In Firefox 3.6.10 I was able to go forward and backwards between pages without the page defaulting to the top of the page. Is there any way to prevent the page from automatically moving to the top when using the forwards and back buttons in Firefox Four?

    I like to be able to navigate backwards and forwards without having to scroll down and find where I was previously. In Firefox Four, when using the forwards and back buttons, the page will automatically return to the top of the page. Is there any way to change this setting in Firefox Four to prevent it from doing that?

    Thanks for the response. No Time Machine, but I probably have a backup from a few months ago on an external hard drive. :/ I guess it'd have useful history, but not if it overwrote the last 3 months or so of Awesome Bar, that might not be so great.

  • How to run the form that is only installed on a PC and not using a server?

    Hi
    I am new to Oracle and have taken the forms class. But I do not understand how to run the form from my PC using XP windows. (Do not have access to a server).
    I have started the OC4J, made sure the listener was started, compiled the form and then when I run it, it automatically goes to the HTTP:
    ERROR: res://ieframe.dll/acr_depnx_error.htm#,http://kevin:8889/forms/frmservle
    I connected to the database correctly. I can process a report and it does nor try to access the internet. My only issue is running the form. I verified it compiled.
    Sorry for a basic question. Could someone please help, I tried reviewing other questions, but not sure if they are connecting to a server or not.
    I see webutil but is it required if I don't have a server? Thank you in advance.

    Regardless of the version, it appears that you may not have configured the Builder. Do the following:
    1. Open the Builder
    2. From the menu, select Edit > Preferences > Runtime
    3. In the box labeled "Application Server URL:", enter a local URL needed to run a form OR click the button labeled "Reset to Default". If you decide to manually enter a value, it would looks something like this:
    http://localhost:8889/forms/frmservlet
    4. In the field labeled "Web Browser Location:", enter the path and executable to your preferred browser. So for example if IE is your browser of choice the entry would most likely look like this:
    C:\Program Files\Internet Explorer\IEXPLORE.EXE
    5. Click on OK and retest.
    By the way, you can manually enter a URL in the browser. Clicking the RunForm button from the Builder is strictly optional. To run the "test" form directly from the browser enter the following into the browser's address field:
    http://localhost:8889/forms/frmservlet?form=test
    More information about Forms can be found on OTN:
    http://www.oracle.com/technology/products/forms/index.html

  • The browser's back button doesn't work for portlet navigation

    I developed a simple portlet that uses webflow navigation to navigate within a
    portlet. I made this portlet visible on a portal's home page. When I view my
    main portal page, the URL is "http://localhost:7501/samplePortal/index.jsp "
    In this page I can see my portlet. When I click on a link inside of the portlet,
    it takes me to the page I want. Then, when I click the browser's back button
    to go back to the previous page(main portal page), it doesn't work. The URL changes
    back to "http://localhost:7501/samplePortal/index.jsp", but portlet itself doesn't
    take me to the previous page. Anybody have any ideas? I am guessing it's because
    the wfevent is null, but how do I resolve this problem?

    Hi Jay,
    I was able to get the back button to work for portals by commenting out the following
    lines in the portal.jsp:
    // prevent caching these pages at clients.
    // response.setHeader("Cache-Control", "no-cache"); // HTTP 1.1
    // response.setHeader("Pragma", "no-cache"); // HTTP 1.0
    // response.setDateHeader("Expires", 0); // prevents caching at proxy
    I also made sure my browser was set to allow the caching of pages.
    You are having problems, because we set the response headers to tell the browser
    to not cache the portal pages, and the portlet state has not changed back to it's
    original state.
    -John Bimson
    "Jay" <[email protected]> wrote:
    >
    I developed a simple portlet that uses webflow navigation to navigate
    within a
    portlet. I made this portlet visible on a portal's home page. When
    I view my
    main portal page, the URL is "http://localhost:7501/samplePortal/index.jsp
    In this page I can see my portlet. When I click on a link inside of
    the portlet,
    it takes me to the page I want. Then, when I click the browser's back
    button
    to go back to the previous page(main portal page), it doesn't work.
    The URL changes
    back to "http://localhost:7501/samplePortal/index.jsp", but portlet itself
    doesn't
    take me to the previous page. Anybody have any ideas? I am guessing
    it's because
    the wfevent is null, but how do I resolve this problem?

  • How to keep the watch to display without press the button on my iPod Nano 6th)?

    Dear Guys,
    I have purchased a watchband for my ipod nano 6th recently, overall is okay but i don't know how to keep the watch to display without pressing the sleep/resume button on edge? Also, the screen is not showing the watch immeditaly when I press the button, it shows the music/cd folder, then I need to scroll the screen back to the watch display.  Please help.

    There is no way to keep the display on permanently, as doing so would significantly reduce the overall life of the battery.  It would maybe last only hour, maybe not even.
    As for having your iPod wake up to the watch view, head to Settings -> General -> Time on Wake -> On.
    B-rock

  • 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

  • How to register the recipient when create job by function

    I am now use JOB_OPEN , JOB_SUBMIT and JOB_CLOSE to create a job in the program. And need to post the result of the report to the person by email.
    Can you tell me how to register the recipient when create the job.
    ( in sm36, it is easily to do but how to do in coding? )
    regards,
    slam

    Hi
    I think in Back ground using the above fun modules you can't send a mail to the receipient.
    see the use of the above fun modules;
      IF p_bjob = 'X'.
        CONCATENATE sy-cprog sy-datum sy-uzeit
                    INTO jobname SEPARATED BY '_'.
        CALL FUNCTION 'JOB_OPEN'
          EXPORTING
            jobname          = jobname
          IMPORTING
            jobcount         = jobcount
          EXCEPTIONS
            cant_create_job  = 1
            invalid_job_data = 2
            jobname_missing  = 3
            OTHERS           = 4.
        CALL FUNCTION 'GET_PRINT_PARAMETERS'
          IMPORTING
            out_archive_parameters = arc_params
            out_parameters         = print_params
            valid                  = valid
          EXCEPTIONS
            archive_info_not_found = 1
            invalid_print_params   = 2
            invalid_archive_params = 3
            OTHERS                 = 4.
        IF valid = chk.
          SUBMIT ybrep
                          WITH < sel Screen>
                          AND RETURN
                          USER               sy-uname
                          VIA JOB            jobname
                          NUMBER             jobcount
                          TO SAP-SPOOL
                          SPOOL PARAMETERS   print_params
                          ARCHIVE PARAMETERS arc_params
                          WITHOUT SPOOL DYNPRO.
          CALL FUNCTION 'JOB_CLOSE'
            EXPORTING
              jobcount             = jobcount
              jobname              = jobname
              strtimmed            = 'X'
            EXCEPTIONS
              cant_start_immediate = 1
              invalid_startdate    = 2
              jobname_missing      = 3
              job_close_failed     = 4
              job_nosteps          = 5
              job_notex            = 6
              lock_failed          = 7
              invalid_target       = 8
              OTHERS               = 9.
          IF sy-subrc <> 0.
           MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          ELSE.
            MESSAGE i029 WITH jobname.
          ENDIF.
        ELSE.
          MESSAGE s000 WITH text-003.
          STOP.
        ENDIF.
      ENDIF.
    Reward points if useful
    Regards
    Anji

  • How do you use forward and back button on mouse and use "zoom" in web browser.

    Ok so apparently this forum is ruled with an iron fist or something my very honest and truthful problems with these issues seem to have been instantly deleted in my last discussion?
    I'll try this once more.
    1) How do you use the forward and back button on a mouse without having to buy a product like Steer Mouse? There must be a way to do this without having to buy a program given it's such a useful feature that 99% of users need. I don't want to spend hours researching something that should already work. Any advice?
    2) How do you zoom in for web browsers like Chrome without it globally zooming in everything on the monitor (even background applications). I don't want to zoom in background applications. I want to be able to zoom in the web browser and still maintain all the features like the side bar, not just a little magnifying glass type thing.
    I'm currently zooming in with the CTRL-Middle Mouse button, but I can't find a way to use this feature so it's useful to browse the web it seems to not scale the browser correctly but rather is a global zoom. Any solution for this?

    Thanks so much!
    Like I said I am new to Apple products so it's still unclear to me which programs I do or don't need as I'm setting up and configuring all my software and devices.
    The Logitech Control Center appears to work perfectly for what I was trying to do!
    I accidently clicked "This helped me" instead of "This Solved My Question", sorry about that this was a solve!

Maybe you are looking for