How to use session to passing data from one JSP to another JSP

Dear All, I had create 2 jsp web page and want to do this:
1. input some data into the text box and click the submit button, the jsp page
will open another jsp page and send the text box data to the new open jsp page.
can any one tell me how to open a new jsp web page and reciev data from another jsp page?
thanks yu very much!
the question.jsp got some code like:
<html>
<input type= 'text' name = 'txtName' size = 10 >
<input type= 'submit' name = 'submit'>
<% some jsp code %>
</html>
answer.jsp
<html>
<%
some jsp code here
%>
</html>

Contents of HTML forms are transmitted as name-value pairs, so you can call request.getParameter(String name) with your form field's name in order to access its value:
String textValue=request.getParameter("txtName");Regards

Similar Messages

  • What are Parameters? How are they differenet from Variables? Why can't we use variables for passing data from one sequnece to another? What is the advantage of using Parameters instead of Variables?

    Hi All,
    I am new to TestStand. Still in the process of learning it.
    What are Parameters? How are they differenet from Variables? Why can't we use variables for passing data from one sequnece to another? What is the advantage of using Parameters instead of Variables?
    Thanks in advance,
    LaVIEWan
    Solved!
    Go to Solution.

    Hi,
    Using the Parameters is the correct method to pass data into and out of a sub sequence. You assign your data to be passed into or out of a Sequence when you are in the Edit Sequence Call dialog and in the Sequence Parameter list.
    Regards
    Ray Farmer

  • How do i transfer all my data from one itouch to another?

    how do i transfer all my data from one itouch to another?

    Try here  >  http://support.apple.com/kb/HT2109

  • Passing data from one frame to another frame

    hello all, i am having a problem with passing data from one frame from another. I have a main frame when you click on connect button it display the second frame(class) that has 2 text fields and 2 buttons. When i click on connect it check if the data is correct. If the data is correct i want that frame to close and pass the data back to main frame. How can i do that.
    thank you

    hello all, i am having a problem with passing data
    from one frame from another. I have a main frame when
    you click on connect button it display the second
    frame(class) that has 2 text fields and 2 buttons.
    When i click on connect it check if the data is
    correct. If the data is correct i want that frame to
    close and pass the data back to main frame. How can
    i do that.
    thank you
    the original problem sounded like an ideal opportunity to use Modal Dialog. if you want one frame to display another to get user input then you need to stop the method in the main frame from executing until you recieve a valid input.
    you can use your own class and keep all of the components that you have in the connect frame but you would have to extend JDialog instead of JFrame.
    there is a way around it!
    if you must use JFrame for both, then you need to have access to the main frame in the connect frame, maybe pass the pointer to the constructor??
    anyway, when the connect frame is done with its duties, you have to use the pointer to call another method in the main frame that will continue the process. otherwise main frame doesn't know when connect frame is done and by that time, the method in main frame that instantiated the connect frame has long since died.
    also, it allows things to happen in the other window that you may not want to happen until the connect frame is done
    typically users of software start clicking around on things and you could have three or four connect frames going at the same time
    it's really best to use a Modal Dialog, it really can look just like a JFrame!!!!!!!!!!!!!!

  • Pass data from one VI to another one

    Hi,
    I try to control a event structure in a VI with a boolean command from a second VI. I have been advised to "build a connector to pass any data from one VI to another one".
    Below an simple example: my goal is MyVItwo gives the result of a 2 numbers addition only when the boolean "MyBooléen" value changes in MyVIone.
    How can I realise this?
    Thanks
    PB
    Attachments:
    Example.zip ‏10 KB

    It is not entirely clear what you are trying to do. I think that what you want is a main vi/subvi setup. The boolean control would be in the main vi and would be monitored by an event structure. When the value of the boolean changes the subvi would be activated. I have attached an example showing how this is done.
    In order to use a vi as a subvi you build a connector box. In order to do this you just right click on the vi icon at the top right of the front panel and select show connector. You then wire connections on the connector block to controls on the front panel. You insert the subvi into your main vi by choosing "Select a vi" on the functions pallette and browsing to the subvi.
    If you absolutely have to pass the data from one vi to another while running in parallel there are a number of ways to do it. Global variables will certainly work but are generally avoided by experienced LabVIEW programmers due to their potential caveats and the break in data flow. An alternative to global variables is the functional global, also called a LV2 style global. This is basically a non-reentrant subvi with an unitialized shift register which allows for data to be stored. For more information search this forum for LV2 globals.
    Another alternative is to obtain a reference to the control and operate on that reference. You could also use queues, notifiers, or occurences. Search the examples which shipped with LabVIEW for examples on using these operators.
    If you need any more information feel free to post back here.

  • How to move only subset of data from one database to another?

    Both source & destination are Oracle11g databases.
    The requirement details are as below,
    1) The database contains static as well as transactional data for telecom domain.
    2) We have to move region-wise data from one database to another.
    3) There are around 10 regions.
    4) The region wise data extraction from source db is based on around 40 to 50 tables. Rest of the tables contains
    static data & it will not change.
    5) The volume is around 1 million subscribers per region.
    6) The migration is required because
    a) The client is upgrading its base product which uses this database
    b) There is a change in structure of static tables
    c) Hardware upgrade
    d) The client want to start with single region on new database & rest of the regions will be operated from old
    database.
    7) Keep execution time to very minimum.
    I am thinking to have solution as below,
    1) Create destination database with upgraded db structure (as mentioned in 6b)
    2) Create database links to access source db in destination db.
    3) Write SQL queries to fetch data from all the respective tables for a specific region
    4) Write separate PL/SQL blocks for each table to fetch data from source db & insert into respective table in
    destination db
    a) Use FOR ALL & bulk collect to improve the performance
    b) Divide table data into multiple chunks & execute parallel batches (around 10) to insert the data
    5) Validate pre & post counts to verify the success of migration
    Is there any other better way?
    Regards,
    Sandeep

    How to move only subset of data from a partiular table by using transportable tablespace?
    E.g. SUB table using SMP_SUB tablespace contains subscriber data in source database.
    The indexes defined on SUB table are under SMP_IDX_SUB tablespace
    The subscribers data can be categorized by different regions, say region_id column. Then how to move data & indexes of SUB table from source db to destination db?
    any specific example would be helpful.

  • Passing data from one screen to another(web-dynpro) in SRM sourcing cockpit

    HI Experts,
    i am facing problem in passing data from one web-dynpro screen and assigning the data it to another web-dynpro screen.
    my requirement is that when ever user selects a contract in PROPOSE SOURCES OF SUPPLY screen popup and press only assign only button, the data of the contract should be copied to the shopping cart.
    i have already used the BADI BBP_DOC_CHANGE_BADI, but unfortunately it was not working.
    so i tried to use the context, element and other web-dynpro fields to pass the data, i am able to pass the data from the popup to the second screen and able to assign it.
    but when ever i deselect the shoppping cart which has been assigned with the data of the popup and select another shopping cart the data of the above shopping cart is cgetting changed.
    i am unable to figure out the exact reason why this is happeing.i have written code in the ASSIGN ONLY button method to fetch the popup data and in the WDONMODIFYVIEW method of the second screen to assign the popup data to the shopping cart.
    i have tried to bind the elements using the BIND_TABLE, BIND_STRUCTURE, BIND_ELEMENT, BIND_ELEMENTS methods, but nothing is working.
    can anyone suggest me where i am making mistake and try to solve the issue.
    Thanks
    Tanveer

    Dear Poster
    Your thread has had no response since it's creation over
    2 weeks ago, therefore, I recommend that you either:
    - Rephrase the question.
    - Provide additional Information to prompt a response.
    - Close the thread if the answer is already known.
    Thank you for your compliance in this regard.
    Jason Boggans
    SAP SRM SDN Moderator

  • How to use Go URL to Navigate from one report to another

    I have used Actionlink option to navigate from one report to another, It is nopt working on the dashboard because i used presentation variables in my first report and its throwing me an error below, I have to pass on id from one summary report to detail report, I have created Go URL, Do i need to use that URL in my summary report column formula ?
    Need some info ~ Thanks ~Srix
    An invalid object was accessed during evaluation.
    Error Details
    Error Codes: QBB4RZQS:SDKE4UTF
    Location: saw.views.evc.activate, saw.httpserver.processrequest, saw.rpc.server.responder, saw.rpc.server, saw.rpc.server.handleConnection, saw.rpc.server.dispatch, saw.threadpool, saw.threadpool, saw.threads
    Expression: report.variables['TimePeriod']

    Hi ,
    Please refer the below threads.
    How to Navigate from one report to another report based on column values
    Navigating from one report to another report
    Re: Navigate from Report 1 to Report 2 using Go URL
    Award points it is useful.
    Thanks
    satya

  • Passing data from one subreport to another subreport

    Post Author: GISGuy
    CA Forum: Formula
    I have a report which is really a series of subreports with very few actually requiring a direct link to another.  What I am trying to do is compare dates between different subreports and do conditional formatting to highlight where a dependant data source has an older date than the parent data source.
    We use Crystal Reports XI release 2, and the data resides in ArcSDE & Oracle 9.
    Any suggestions would be greatly appreciated.
    Eric Andersen
    Woodlands Information Management Technician
    Canadian Forest Products Ltd.
    Prince George, BC

    Post Author: synapsevampire
    CA Forum: Formula
    When your tagline is about the size of your post, you probably didn't convey much.
    You can pass values from one subreport to the next in the order they are placed in the main report by using shared variables, as in:
    //1st subreportwhileprintingrecords;shared datevar MyDate := {table.date}
    //2nd subreportwhileprintingrecords;shared datevar MyDate;if {table.date} = MyDate thencryellowelsecrwhite
    Covers the theory, for specifics you have to be in your post.
    -k

  • How to copy documents for InfoProvider data from one cube to another cube

    Hello Everyone,
    We are using standard document feature to store document/comment about the data shown in the report/planning query. Relevant characteristics have the property 'characteristics is document attrib' turned on/selected for this purpose.
    Looks like the documents created gets tagged to a particular InfoProvider along with characteristic value assignment.
    Is there a way to move or copy documents from one InfoProvider to another InfoProvider.
    As per the design requirement, we need to move data from a real time InfoProvider (transaction cube) to a basic reporting cube. The data in the first/source cube stays for a period of approx 3 months before moved to other cube. We want the documents associated with InfoProvider data also to be moved, so that users can continue to see the document/comments what they  had created earlier.  
    I looked at the Documents tab in DataWarehouse workbench. No options seem to be available to copy or move documents.
    Any help will be highly appreciated and points will be rewarded accordingly!
    Best regards,
    Sanjeeb

    Hi
    Have you got any answer to this? I would also be interested in a copy function but more from one query ID to another.
    Kind regards,
    Daniel Müller

  • Passing data from one page to another page using form bean

    hi,
    refer to above question, i had follow the sample found at weblogic sample application
    ,but unfortunately when i create my own application. The following error occur:
    [Caught exception when evaluating expression '{actionForm.note}' with available
    binding contexts [currentTag, session, pageContext, request, response, application].
    Root exception cause: com.bea.wlw.netui.script.xscript.IllegalContextStateException:
    The action form for the expression "actionForm["note"]" could not be found
    can anymore tell me what has i miss !
    {program flow -
    pageA.jsp[userinput] ->getConfirmationAction-> pageB.jsp[confirmation]
    -> protected Forward getConfirmation(TransferBean
    form) throws Exception
    return new Forward( "show_confimation" ,form);
    thanks & rgds
    cassy

    Cassy,
    If your page flow looks like this:
    first.jsp -> actionA(FooForm) -> second.jsp -> actionB()
    Then I think the problem is that there is no action form in scope as
    second.jsp is rendering. This is because the action raised by
    second.jsp is actionB, which has no form, and hence no {actionForm}.
    You have two options:
    Option A - use page inputs (available in the upcoming Service Pack 2)
    ---- JSP:
    <%-- At the top of your second JSP... --%>
    <netui-data:declarePageInput name="myPageInput" type="APageInput"/>
    <netui:label value="{pageInput.myPageInput.name}"/>
    ---- JPF:
    * @jpf:action
    * @jpf:forward name="success" path="second.jsp"
    protected Forward actionA(FooForm form)
    APageInput input = new APageInput(form.getName());
    return new Forward("success", "myPageInput", input);
    Option B - since the form is still technically in the request, use it as
    a workaround until option A is available to you.
    <netui:label value="{request.fooForm.name}"/>
    I hope this helps.
    Thomas
    Eddie O'Neil wrote:
    Cassy--
    Is there a <netui:form> tag on the page which displays this error
    (pageB.jsp?)?
    The "actionForm" binding context can only be used inside of a
    <netui:form> tag. To display data in a read-only page (no form), you
    can put the data in the request and reference it with the "request"
    binding context.
    Hope that helps...
    Eddie
    cassy wrote:
    hi,
    refer to above question, i had follow the sample found at weblogic
    sample application
    ,but unfortunately when i create my own application. The following
    error occur:
    [Caught exception when evaluating expression '{actionForm.note}' with
    available
    binding contexts [currentTag, session, pageContext, request, response,
    application].
    Root exception cause:
    com.bea.wlw.netui.script.xscript.IllegalContextStateException:
    The action form for the expression "actionForm["note"]" could not be
    found
    can anymore tell me what has i miss !
    {program flow -
    pageA.jsp[userinput] ->getConfirmationAction-> pageB.jsp[confirmation]
    -> protected Forward
    getConfirmation(TransferBean
    form) throws Exception
    return new Forward( "show_confimation" ,form);
    thanks & rgds
    cassy

  • Passing data from one transaction to another

    Hello ,
    I have internal table  as a result of user  selection on the selection screen of first transaction.
    Internal table can have any number of  lines that have to be processed in second transaction.
    How I can pass data ( list ) from first transaction to second one.
    Please advice
    Krsto

    Hi Krsto,
    Firstly i didnt understood the concept of transactions.
    U can pass the data of one views table selcted data into the other or to capture the data  .
    Try using these two methods
    1. Cal method get_selected_elements.
    2. Or else if u want whole table data to be captured then use Get_static_attributes_table
    I am sure by one of this methods yuor data will be passed.
    This methods are used for the table data selected will be captured and write the code accordingly as u wish
    regards,
    Sana.

  • How to transfer SOME apps + app data from one iPad to another

    I have an iPad1 that has tons of apps on it (I call it my app graveyard).
    I have an iPad2 that has my primary apps and this is the iPad that I use on a daily basis.
    I want to move an App and the Saved Data from the iPad1 to the iPad2. How do I do this?
    Again, I don't want to restore everything... just a couple of Apps + their SAVED data from my iPad1 to my iPad2.
    Any help would be greatly appreciated!

    When you restore from a backup - the process is an "all or nothing" deal. You restore all app data and settings. You cannot select just one set of app data to restore.
    You can download the one app only to the other iPad but you cannot restore the data from just one app. It's just not possible to do.

  • Passing data from one webapplication to another

    hi all
    i have two web apps webapp1 and webapp2 deployed on weblogic server 10.3
    i want to redirect to webapp2 from webapp1 based on some condition, set some flag there and then come back to webapp1.
    now in webapp1 i want to check the value of this flag set in webapp2.
    i tried using request.sendRedirect() method and set the flag value in session attribute.
    but as per my understanding sendRedirect() method creates new request object and thus invalidates the old session because of which i am not able to retrieve the values. requestDispatcher.forward(0 method doesn't work for different applications.
    so what is the method which i should be using to pass some values from one web application to another.
    thanks in advance

    seems more like something you would fix with a webservice really. With for example XML-RPC you can very quickly setup a (simple) communication line between applications and you don't even have to worry if the applications are moved to different servers or even completely different networks.

  • How can I transfer my iTunes data from one computer to another? PS. My old computer won't turn on

    I Recently bought a new computer and I need to transfer all my iTunes data from my old computer to the new one, how can I do that? And by the way, my old computer won't turn on

    Hello Nousernamebrah
    Well get get your music from your old computer to your new computer, the old computer would have to work and turn on to access the files to be copied over. You also can access any previous purchased music and download it to your new computer as well. Check out the articles below for more information. 
    iTunes: How to move your music to a new computer
    http://support.apple.com/kb/HT4527
    Download past purchases
    http://support.apple.com/kb/HT2519
    Regards,
    -Norm G.

Maybe you are looking for