How to send a request from a page to another

Hello,
I've started a project an I would like to do the following.
I have :
-a datasource included in my project
-a page customer_list.jsp with a list (and data binding a datasource table)
-a page customer_search.jsp with a text field(where i write my sql request) and a ok button
-a link (page navigation) between ok button and customer_list.jsp
I would like, when I clic on the ok button, to go to the customer_list page with datas in the list that result from my sql request.
What I think :
-in the ok buton event, create a requestBean object and .... (don't know how to specify it a request, but i'm searching)
-return "customer_list"
-in the customer_list.java constructor : recover the requestBean Object (how to do ?) and bind the result to the list.
I think it's not a good way to do, this is my first project and I don't know yet how to do a good work with JSC2.
Can you tell me where are the "bugs" with what I want to do ?
Thanks for your answers
Nicolas

I've found !
let's see my ok button code :
public String b4_action() {
        String sql = e1.getText().toString();
        try
        getSessionBean1().getCustomerRowSet().setCommand(sql);
        getSessionBean1().getCustomerRowSet().execute();
        catch(SQLException e)
            System.err.println(e);
        return "customer_list";
    }I hope this will help someone else ...
Nicolas

Similar Messages

  • How do I move apps from one page to another?

    How do I move apps from one page to another?

    From a previous thread:
    Touch and hold any icon for a couple of seconds. They'll all start to wobble. Touch and drag the one you want to move to the side of the screen and the next screen will appear; drop the icon on whatever screen you want it on.
    You can also do it quicker in iTunes - connect the phone and click the Apps tab in the main window. You'll see a picture of your phone with the apps laid out. Just click and drag

  • How do you move icons from one page to another?

    How do you move icons from one page to another?

    hold down on an app till everything start shaking then move it to one side of the ipad and it'll change "pages" after a second or two.

  • How to setup the Hyperlink from one page to another page

    Hi,
    I am new to Oracle APEX. My requirement is to setup a Hyperlink from one page to another page.
    Currently I am displaying 4 columns in the report of Page 1. The report is like below,
    Survey Response Count_of_Cities City_Name
    AB Y 2 LONDON,CHICAGO
    AB N 3 DELHI,MUMBAI,CHENNAI
    AC Y 1 LONDON
    AC N 4 TOKYO,HONGKONG,BANGALORE,HYDERABAD
    But the revised requirement is I need to show the City_name in another page i.e. Page 2 when the user clicks on value of the Count_of_Cities. i.e. If the user clicks on 3, In page 2 the values should be appear like below
    DELHI
    MUMBAI
    CHENNAI
    If I click on the 4, the values in the page should be like below,
    TOKYO
    HONGKONG
    BANGALORE
    HYDERABAD
    Currently in Page 1 I am hiding the City_Name and created a Hyperlink on Count_of_Cities. When clicked on Count_of_Cities it is navigating to Page 2. But the values for City_Name are not showing properly.
    Please sugegst how I can show the City_Name values in page 2?
    Please let me know if you require any additional information.
    Please provide the solution. The requirement is urgent.
    Thanks in Advance
    Edited by: 980540 on Jan 9, 2013 3:08 AM

    I got the answer on my own.

  • How to move a file from a page to another one in a wiki?

    Is it possible to move a file from a page to another one in a wiki (wiki server 4)?

    Files uploaded via "+" button and "Upload File to "My wiki name"" can be moved just like normal wiki pages by clicking the "sprocket" button and selecting "Move to Wiki"
    Fils attached via the "paperclip" button when editing a page, must be downloaded first, deleted from the initial page and reattached to the new page.

  • How to send/set parameter from BSP page to iview

    Dear Expert,
    Can advise me how to send or set parameter from BSP page to iview ?
    http://xxx.xxx.com/irj/portal?navigationtarget=roles://pcd:portal_content/FLD.ObjetLibrary/FLD.Iviews/FLD.CRM/ET/bsppage.htm?lv_param=xxx
    I want to view my bsp page in portal but with parameter value.
    I can open my bsp page without parameter value like link below :
    http://xxx.xxx.com/irj/portal?navigationtarget=roles://pcd:portal_content/FLD.ObjetLibrary/FLD.Iviews/FLD.CRM/ET/
    Thnx & Regards,
    Pieter

    Hi,
    your BSP page get's integrated via an iFrame. So, simply speaking, it's not possible to pass an parameter back.
    But what you can try is to use the Portal DataBag component. In the BSP page, store the information you want to pass in the browser. The iView/Portal than has to check if there is a new parameter / value stored.
    SAP Help: http://help.sap.com/saphelp_nw70/helpdata/en/68/322a9261c54e51b7965f86aac3dae2/frameset.htm
    br,
    Tobias

  • How to send the data from jsp page to excel ???

    hi all,
    i want to send the data from my jsp form to excel sheet. any one can help me ??

    Hope this sample code might help :
    StringBuffer data = new StringBuffer();
    OutputStream ostream = response.getOutputStream();
    response.setContentType("application/vnd.ms-excel");
    response.setHeader( "Content-Disposition",
    "attachment; filename=sample.xls" );
    ostream.write(data.toString().getBytes());
    ostream.flush();
    Try it out.
    Swathi

  • How can I carry information from one page to another page???

    Hi, I have two different pages, and two different tables on them. Like city and house pages and tables. I wantto add new record in house tables which depends on city tables and they must on be different pages, I mean I cant use master detail tables or master detail forms.
    So this is the problem :This two tables have same column called cityId. And I have a button on city page called " create new house"How can I carry Cityid information from city page to haouse page when I pushed the button.Thanks for your help.

    Hi,
    I would suggest using something like what eax23 proposed, but using pageFlowScope instead. So in the 1st page:
    <af:commandButton .....>
      <af:setActionListener from="cityID" to="#{pageFlowScope.cityID}"/>
    </af:commandButton>In the second page you have your managed bean read the cityID from the page flow scope directly. This will prevent having issues from the bean scope that eax23 solution could cause sometimes.
    Regards,
    ~ Simon

  • In iWeb, how do I move pictures from one page to another??

    In iWeb, how do I move photos from one album/page to another?

    If there are a bunch of then, either drag the mouse over them to select them, or select them one by one while holding down the Command key.
    Then copy - Command C
    Now paste them onto the new page - Command V

  • How to send an object from one application to another?

    Hi all,
    I have two applications over the same server. The first application needs to send an object to the other application.
    I try to put the object as a session attribute, but in the moment that the second application tries to get the attribute, the attribute doesn't exist.
    Does anybody now how can pass an object from the one application to the other?

    You can also use JMS

  • How to pass the value from one page to another page

    Dear Gaurav
    I have three pages
    1-creation page
    2-search page
    3-creation page
    in first creation page I have column name user write a% and submit to that search for that name.
    it is going to second page (search page)name a% is passed and search that corresponding value,the corresponding values are not there user will call third creation page and enter the details and save and click back to first page the value is not calling passing from third page to first page I submit the button in 3rd page the error is coming like this.
    The requested page contains stale data. This error could have been caused through the use of the browser's navigation buttons (the browser Back button, for example). If the browser's navigation buttons were not used, this error could have been caused by coding mistakes in application code. Please check Supporting the Browser Back Button developer guide - View Object Primary Key Comparison section to review the primary causes of this error and correct the coding mistakes.
    Cause:
    The view object xxcrmleadmgmtAM.xxcrmleadmgmtVO contained no record. The displayed records may have been deleted, or the current record for the view object may not have been properly initialized.
    in first page column name I removed view instance and view attribute the value is passing from third page to first page
    my requirement is the value call from 3 to 1 and user will enter remaining fields in 1st page and save the records.
    Regards
    Mahesh

    Hi Mahesh,
    Use
    OA.jsp?page=/oracle/apps/................&retainAM=Y).
    Thanks
    Jegan

  • How to send doc files from one system to another using XI

    Hi All,
    I have a requirement to pick the word doc files from one file system and send these word document files to ECC system place in ECC application server.Can we achieve this requirement using XI. If so how we can do this. also let me know can we convert these doc files into proxy and send to ECC?. Please let me know. Thanks.
    Regards,
    Rajesh

    Yes You Can
    XI Converts Unstructured data(That is non -XML)Type- in your case word doc and maps it to Target structure.
    You can either use content conversion
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns
    /people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
    You can either built a adaptermodule for the same(U nedd to have Some Java knowledge)
    You can also convert without creating any objects in integration directory link for the same is
    /people/william.li/blog/2006/09/08/how-to-send-any-data-even-binary-through-xi-without-using-the-integration-repository
    ***********Please Reward Points If find Helpful*********

  • HT1689 How do I move apps from 1 page to another. iPhone 4s

    Moving apps from page to page, how?

    Tap and hold the app icon until it starts to wiggle an drag it to the edge of the page. The next page should open then release the app icon

  • How do I "flow" text from one page to another

    I think I have a simple question that I cant seem to figure out. I am creating an electronic Letterhead for my office to use. What I need to be able to do is have a text box that starts on the first page, and "flows" the text to the the following pages as the user types the letter. Does anyone have any idea how to do this? A step by step answer would be very helpful.
    Thanks, Aaron

    First you'll need to save the form as a dynamic form. Once you've done that, you'll need to click on the field you want to expand and check the Allow Multiple Lines checkbox in the Field tab under Object. Then go into the Layout tab and check Expand to fit under Height.
    If this isn't exactly what you're looking for, a quick search using the forum search might help you find what you need.
    Regards,
    Dave

  • How to send a variable from one class to another?

    hello,
    i have "One.as", which is the document class for one.swf.
    i also have "two.swf", with "Two.swf" entered as its document
    class...
    One loads two into it. two is basically a 10 frame movieClip
    with a variable at the beginning called "var endFrame:Boolean =
    false", then on the last frame it says endFrame = true.
    my question: how in the world do I communicate this back to
    One.as??? i've tried ENTER_FRAME listeners, declaring the variable
    here and there... and many other embarrassingly usuccessful
    strategies.
    i would just like to load in "three.swf" after two.swf
    finishes... but One needs to know that it has indeed finished.
    your help would be greatly appreciated. thanks

    yarkehsiow,
    > David,
    > thank you for responding.
    Sure thing! :)
    > so does what you are saying mean that endFrame is a
    property of
    > two (the movieClip), or Two (the Class)?
    If you've written a property named endFrame for your Two
    class, then
    yes, Two.endFrame is a property of that class.
    Looking back at your original post, I see that you wrote
    this:
    > One loads two into it. two is basically a 10 frame
    movieClip
    > with a variable at the beginning called "var
    endFrame:Boolean = false",
    > then on the last frame it says endFrame = true.
    So it sounds like your Two class extends MovieClip. (I'm not
    sure
    that's true, but that's what it sounds like.) That means your
    Two class
    supports all the features of the MovieClip class, including a
    play() method,
    a currentFrame property, and so on. In addition, you've added
    new
    functionality that amounts to -- by the sound of it -- a
    property named
    endFrame. If you made your property public (i.e., public var
    endFrame),
    then it should be accessible by way of an object reference to
    your Two
    instance.
    myTwoInstance.endFrame;
    > so can i invoke that method in One.as? do I call it
    Two.endFrame (if
    > (Two.endFrame == true) {?
    Methods are things an object can *do,* such as
    gotoAndPlay(). What
    you're describing is a property (a characteristic ... in this
    case, a
    Boolean characteristic). You wouldn't use the expression
    Two.endFrame
    unless that property was static. Static classes are those
    that cannot have
    an instance made of them. Think of the Math class. It
    contains numerous
    static properties in the form of constants, such as Math.PI,
    Math.E,
    Math.SQRT2, and so on. You can't create an instance of the
    Math class -- it
    wouldn't make sense to -- so Math is a static class.
    On the other hand, you definitely create instances of the
    MovieClip
    class. Every movie clip symbol is an instance of MovieClip
    class, which
    means that each instance carries its own unique values for
    MovieClip class
    members. The MovieClip class defines x and y properties, but
    each movie
    clip symbol (that is, each instance of the MovieClip class)
    configures its
    own values of those properties, depending on where each
    instance is located
    on the Stage.
    Assuming your Two class is not static, then somewhere along
    the line,
    your One class will have to make an instance of it. Somethine
    like ...
    // inside your One class ...
    var myTwo:Two = new Two();
    ... at which point that myTwo variable because a reference to
    that
    particular instance of Two. You can invoke Two methods on
    that instance.
    You can invoke Two properties and events on that instance.
    You can invoke
    whatever functionality is defined by the Two class on that
    myTwo instance.
    If Two extends MovieClip, that means you can also invoke any
    MovieClip class
    member on that myTwo instance.
    At some point in your One class, you can refer to that myTwo
    instance
    later and check if the value of myTwo.endFrame is true or
    false.
    David Stiller
    Adobe Community Expert
    Dev blog,
    http://www.quip.net/blog/
    "Luck is the residue of good design."

Maybe you are looking for