How to pass information from one JSP to another JSP? help please

hi there
my question is how to pass some information such from one JSP to another one. for exmple, on one page there is a form, and i need to pass some values from the form to another jsp, or some values that were calculated on one JSP and need to be passed to another one. thanks

You can do this in several ways...here is a simple one...
When you call the second page url, use this
http://www.mysite.com?myVariableFromPageOne="hello"
on the second page use this:
String firstPageVariable = request.getParameter("myVariableFromPageOne");
Thanks

Similar Messages

  • HT201250 how can i pass information from one mac to another mac by using the time capsule

    how can i pass information from one mac to another mac by using the time capsule

    If you want to transfer files, settings, etc., you must open Migration Assistant (Applications > Utilities) in the Mac that you want to transfer the files and follow the instructions

  • OBIEE 11g How to pass variable from one prompt to another prompt in dashboard page.

      How to pass variable from one prompt to another prompt in dashboard page.
    I have two prompt in dashboard page as below.
    Reporttype
    prompt: values(Accounting, Operational) Note: values stored as
    presentation variable and they are not coming from table.
    Date prompt values (Account_date, Operation_date)
    Note:values are coming from dim_date table.  
    Now the task is When user select First
    Prompt value  “Accounting” Then in the
    second prompt should display only Accounting_dates , if user select “operational”
    and it should display only operation_dates in second prompt.
    In order to solve this issue I made the
    first prompt “Reporttype” values(Accounting, Operational) as presentation
    values (custom specific values) and default presentation value is accounting.
    In second prompt Date are coming from
    dim_date table and I selected Sql results as shown below.
    SELECT case when '@{Reporttype}'='Accounting'
    then "Dates (Receipts)"."Acct Year"
    else "Dates (Receipts)"."Ops
    Year"  End  FROM "Receipts"
    Issue: Presentation variable value is not
    changing in sql when user select “operation” and second prompt always shows
    acct year in second prompt.
    For testing pupose I kept this presentation
    variable in text object of dashboard and values are changing there, but not in
    second prompt sql.
    Please suggest the solution.

    You will want to use the MoveClipLoader class (using its loadClip() and addListener() methods) rather than loadMovie so that you can wait for the file to load before you try to access anything in it.  You can create an empty movieclip to load the swf into, and in that way the loaded file can be targeted using the empty movieclip instance name.

  • How  to transfer data from one system to another by datamart please give de

    how  to transfer data from one system to another by datamart please give details

    Hi Deba,
    Find the below SAP help doc which may help u...
    http://help.sap.com/saphelp_nw70/helpdata/en/12/43074208ae2a38e10000000a1550b0/frameset.htm
    Also find the below threads...
    Loading data from one cube to another cube.
    data copy from infocube to infocube in two different BW systems
    Delta when loading from ODS to ODS
    reg datamart
    Data mart flag
    Regards,
    KK.

  • Passing Information from one RS to another RS

    How can we pass the information from one RS to another RS?

    yes,from EM when I am testing the webservice it is returning the string properly .
    In my ESB application I am calling this service thru a SOAP Service and I am using a FileAdapter to capture the result.Now to configure the RS shall i choose 'Generate WSDL from schemas' i.e. the request -reply option or 'Select Existing WSDL option'?I am choosing the first one.Now whn I am defining the rule there is a node mismatch in my source and target during mapping.When I am invoking the RS from EM i am getting some exception that "input is null".

  • How to pass value from one method to another method

    Hi all,
    I have created a funtion module and i am calling this function module inside a method and it is exporting some value in a table, now i have to pass table value to another method where i have do some thing based upon this values.
    I think there a marco available to move the values from one method to another method.
    Please help me in this issue.
    Regards
    Balaji E.

    Hi,
    Let me make certain assumptions!
    Method 1 - You export the table values
    Method 2 - The method where you need the table values
    Once you create a method from a function module which has tables as one of the export parameters then the code automatically puts in the macro code which looks like : SWC_SET_TABLE CONTAINER 'Table' TABLE.
    The 'Table' in the above code is the container element which is created by the workflow once you use this method and the TABLE (The table that gets filled in the function module) is the variable to code automatically created.
    Now you can use the other function module in the workflow as a background step and pass the values from the 'Table' container to this method using the binding. When you use this then the method automatically has the macro SWC_GET_TABLE CONTAINER 'Table' ITABLE. Here the 'Table' is the same container table you used in the binding and the ITABLE would be the variable you can use in the other function module.
    Hope this helps,
    Sudhi

  • How can I pass information from one portlet to another?

    First, some background...
    I am using Portal 5.0.2 and developing portlets using JSP/Java on a remote server.
    I need to pass information from a portlet on pageA to another portlet on pageB, but I can't do it using the traditional methods, such as query string, session, cookies, etc. due to either portal framework limitations or because of functional constraints (basically, a user will not necessarily be logged in to the portal, but he can view anything available to the GUEST user). Here are the different ways I've considered using to save state and their limitations:
    Query string: can't use this because portlets on remote servers don't have access to it
    Cookies: if user disables cookies, code will not function properly
    Session variables: limited to one user's connection with one portlet (i.e., can't access a session variable set in portletA from portletB)
    Application variables: because the user may not be logged in, I have no way of uniquely naming variables, which is a necessity in order to maintain state for EACH user
    User Settings: again, the user may not be logged in, so I can't use these
    PCC: can't access client-side variables because server-side JSP executes first
    Are my assumptions above correct? Has anyone had any success using one of these methods given the same constraints, or does anyone have an alternative solution? I'd certainly appreciate any help anyone could provide.
    Thanks,
    Jose

    One possibility would be to use a Login PEI to set a unique UserInfo Name/Value for the user. I think in 5.0 each guest session is unique, so would have unique UserInfo. Then you could pass this value to your portlet (by specifying it in the web service) and use it as a key into a Application-scoped hashmap where you store your info. In other words, your Application variables option, but you have a way of uniquely naming your variables via PEI-set UserInfo.

  • How to pass parameter from one form to another

    Hi,
    I have created a form based on a procedure . Now i want to pass a filed value from this form to another form . How can i do this.
    How can i pass a vlue from one form to another form in oracle portal.
    Thanks

    At last - I've managed to get this to work! Is this documented anywhere at all - I just guessed it based on other people's code!
    OK, to prove the example here is what I did:
    I have a form referencing the DEPT table.
    I created a item called 'Search' and of type button.
    I created a 'custom' PL/SQL block and added the following code:
    declare
    v_deptno NUMBER;
    begin
    v_deptno := p_session.get_value_as_NUMBER(
    p_block_name=> 'DEFAULT',
    p_attribute_name => 'A_DEPTNO');
    PORTAL30.wwa_app_module.set_target('http://server/pls/portal30/app_schema_name.EXAMPLE_SQL_REPORT.show?p_arg_names=_show_header&p_arg_values=YES&p_arg_names=_max_rows&p_arg_values= 25&p_arg_names=_portal_max_rows&p_arg_values=25&p_arg_names=DEPTNO&p_arg_values='| |LTRIM(TO_CHAR(v_deptno)),'CALL');
    end;
    Note: you need to reference the column with an 'A_' prefixing the columm name.
    I left the name 'DEFAULT' as it is.
    OK so I set this to a variable and now want to call a Report called EXAMPLE_SQL_REPORT which was created with the following code:
    select * from scott.emp where deptno = :deptno;
    The bind variable being the custom parameter for the report.
    I called the new report with the PORTAL30.wwa_app_module.set_target procedure and put in the full URL path (in this example) of the server and report.
    I hope this helps!
    John
    null

  • How to Pass Variables from One Application to Another Pop Up Window

    Hi,
    I am wondering if anyone on the list has tried calling up a
    pop up manager, and have two other variables imported for secondary
    usage. I have tried using [Bindable], but this does not seem to be
    working, and I am still getting errors that tells me that the
    variables are "not defined" when it gets passed to another
    HTTPService. I tried embedding the Pop Up Manager in the same
    application as the one that is supposed to "pass the variables,"
    but it no longer acts as a pop up window.
    Could anyone please tell me where I can find the answers for
    this?
    Thanks in advance.
    Here is the code of what I have for my pop up manager:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:TitleWindow xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="vertical"
    title="New Scenario"
    showCloseButton="true"
    width="325"
    height="145" horizontalScrollPolicy="off"
    close="titleWindow_close(event);">
    <mx:Script>
    <![CDATA[
    import mx.events.CloseEvent;
    import mx.managers.PopUpManager;
    import mx.controls.Alert;
    [Bindable]public var message:String;
    [Bindable]public var message2:String;
    private function titleWindow_close(evt:CloseEvent):void {
    PopUpManager.removePopUp(this);
    private function submit_click():void {
    Alert.show(scenario_name.text, "Alert");
    new_scenario.send();
    PopUpManager.removePopUp(this);
    var win:Hello = PopUpManager.createPopUp(this,Hello, true)
    as Hello;
    PopUpManager.centerPopUp(win);
    private function reset_click():void {
    scenario_name.text = "";
    ]]>
    </mx:Script>
    <mx:HTTPService id="new_scenario" method="POST" url="
    http://localhost/simulator/scenario.php"
    useProxy="false">
    <mx:request xmlns="">
    <scenario_name>{scenario_name.text}</scenario_name>
    <message>{message}</message>
    <message2>{message2}</message2>
    </mx:request>
    </mx:HTTPService>
    <mx:Form>
    <mx:FormItem label="Scenario Name:">
    <mx:TextInput id="scenario_name"
    text=""
    maxChars="45" />
    </mx:FormItem>
    </mx:Form>
    <mx:ControlBar horizontalAlign="right">
    <mx:Button id="submit"
    label="Submit"
    click="submit_click();" />
    <mx:Button id="reset"
    label="Reset"
    click="reset_click();" />
    </mx:ControlBar>
    </mx:TitleWindow>

    Hi,
    I am trying to display some data on the Child window that
    would need to take the data from the parent titleWindow, which
    could be drop down menus, text labels or combo boxes. I would need
    to use a HTTPService on the child dialog box to accomplish task I
    think, but the problem is, how would I get the information from its
    parent window? The example I have are all about how the text input
    from the child window gets feed back to the parent.
    Would I need to create a "reverse" declaration or something
    so I can access the information from the parent in the child
    window?
    I hope this makes sense.
    Thanks for your help.
    Alice

  • How to pass data from one Form to another Form

    I am writing a Login form to allow user to access MySQL but the Authentication is taking place in another form that actually does the work
    how do I pass the username and password form the Login form to the worker form.

    1. don't do these stuffs on the UI classes, let them only be responsible for displaying UI.
    As for the passing information back and forth from separate objects (forms are classes and form instances are objects) you can read up on the various appropriate design patterns, especially those implemented in MVC models.

  • ESB  : How to Pass value from one RS to another RS

    Hi Gurus,
    I want to pass a value from one First Routing service to another to set the value for the last XSL transformation.
    How can I do this without creating specific XSDs??
    Rgs
    JO

    Data flowing through the ESB is XML-based (or opaque), so if the value you want to pass is in the XML result of RS1, you can use it in RS2. If you have a good reason why not too or this doesn't work for you, you could store data somewhere along the ESB process (database, stateful bean, etc.). Otherwise, you would need to let the ESB generate (or create you own) XSD describing the XML.
    Regards,
    Ronald

  • How to pass data from one component to another

    Hi all,
    We have added a button on "ICCMP_BTSHEAD" component, which will open a new popup component (Zcomponent), which will have some fields related to the order. Can anyone please tell us how to pass the ticket/ entity value  to the new component so that it can be used there. Any pointers will be highly appreciated. Thanks.
    Rgda,
    @run

    Hi Arun,
    I have the same issue. I  added the Follow-up(hyperlink) button in the Sales order. How can i get the view from the Interaction record follow-up  by clicking on hyperlink in Sales order. Please help me.
    Regards,
    Swaraj

  • How to pass values from one section to another section in same dashboard..

    hi
    I am in need of designing a dashboard which contains 2 sections.In first section i will include a Dashboard prompt and in the second section, I have to display a jsp page by passing the result of prompt as a parameter.
    how to pass these values.....
    if possible send me some links regarding this
    thanks in advance...............

    Check my blog entry here http://oraclebizint.wordpress.com/2007/12/26/oracle-bi-ee-101332-drills-across-sections-in-a-dashboard/. It has an example.
    Thanks,
    Venkat
    http://oraclebizint.wordpress.com

  • How to pass data from one page to another

    i have a table with multiselect and i want that in the moment i select some rows and press on a button in the other page should be displayed only those data i have selected from previous one.... how can i do this? any link or example for this case?
    thanks in advance :)

    If the data you are retrieving from the excel file is just a few fields, then you can get them all on the first page and store them as public variables and use those variables on the different pages. But if you are getting a lot of data per page, then it would still be a good idea to get them all on the first page but store them as arrays. Then, on each page you can use the array you need.

  • How to pass data from one session to another?

    What does SAP memory use to pass data between sessions?
    What is the syntax of "Export to ..."? Where is it used?

    hi suman vijay,
    EXPORT obj1 ... objn TO MEMORY.
    Exports the objects obj1 ... objn (fields, structures or tables) as a data
    cluster to ABAP/4 memory .
    EXPORT obj1 ... objn TO DATABASE dbtab(ar) ID key.  Exports the objects obj1 ... objn (fields, structures or tables) as a data cluster to the database table dbtab.
    IMPORT f itab FROM MEMORY.
    Imports data objects (fields or tables) from the ABAP/4 memory . Reads in all data without an ID that was exported to memory with "EXPORT ... TO MEMORY."
    IMPORT f itab FROM DATABASE dbtab(ar) ID key. imports data objects (fields, field strings or internal tables) with the ID key from the area ar of the database dbtab .
    EXPORT obj1 ... objn TO MEMORY.
    If you call a transaction, report or dialog module (with CALL TRANSACTION , SUBMIT or CALL DIALOG ), the contents of ABAP/4 memory are retained, even across several levels. The called transaction can then retrieve the data from there using IMPORT ... FROM MEMORY .
    Each new EXPORT ... TO MEMORY statement overwrites any old data, so no data is appended.
    EXPORT obj1 ... objn TO DATABASE dbtab(ar) ID key
    The database table dbtab must have a standardized structure .
    The database table dbtab is divided into different logically related areas ( ar , 2-character name).
    You can export collections of data objects (known as data clusters ) under a freely definable key (field key ) to an area of this database.
    IMPORT allows you to import individual data objects from this cluster.
    thanks
    Sachin

Maybe you are looking for

  • Silent Profile key ( # ) is not working anymore

    Hello, I am using a Nokia 6300. Recently I did a phone software update (to version 5.00), backed all my data up, had afterwards some trouble to get the saved data back on the handset, but it finally worked. Though I still have one small issue. Before

  • Ipod touch and security on public wi-fi

    My wife was driving around town today and with my new ipod touch I was curious how many wi-fi signals I could pick up. In about a 6 mile trip I saw about 15 separate signals. Of course some were locked down with encryption, but other were not. I coul

  • How can I get my headphone cable to plug in flush in to my nano 6th gen.?

    The cable for my headphones don't seem to want to click all the way into the nano socket. I've tried multiple headphones. I assume something must be preventing it, but it is not obvious. Now what?

  • How to code to get intermediate results in webdynpro ALV? Please help!

    Hi Experts, I got following info from help file to generate Intermediate Results(subtotal). Can somebody help me with sample code to achieve this? Basically I want to subtotal 'Qty' column based on 'Product' field. By default, all values in a field a

  • Command-C does not always copy highlighted text

    Sometimes, and annoyingly regularly, when I press command-C in Safari to copy the text does not actually get copied. I have watched and I can see the evidence of the command being acknowledged by the black flash of the edit menu in the menu bar. But