JSP and passing data

Currently when I write a JSP form page and submit that page I have it go to another page to process the inputed data. But when it does that it passes: http://blah/productUpdate.jsp?var1=1&var2=3 and so on.
Is there another way to go about this and not having to pass the data in the address of the page?

set the form method to post:
<form methd="post" action=productUpdate.jsp>

Similar Messages

  • Using JSPs and passing data from 1 page to the next

    I have an application which has a number of JSPs.
    JSP1 has some fields and buttons.
    One of these buttons is called 'Print'. On pressing this control
    is passed to the next JSP2. In this JSP the data is displayed
    from the database. It is displayed via some TABLE tags, thus giving
    multiple records displayed. There is also a check box against each record and having checked this box - the user can then then press another button which takes the user to another JSP - JSP3 - which gives the user a list of options for printing. They then can do 1 of 2 things - print a report or print some labels.
    I have got this to work where there is only 1 record displayed in JSP2.
    But where more than one record is displayed in JSP2 - JSP3 does NOT
    know how to handle this and says the variable is undefined.
    The code I am using to reference the JSP2 variable is
    var batchNumber = top.opener.document.printTranscript.batchNumber2.value;
    Any help or ideas would really be appreciated.
    Thanx
    Chris

    Hi
    If you are using JavaScript, try putting data in a Hidden field and perform request.getParameter in the next page, Place data in a Delimited fashion when placing into the hidden field, on the next page split these values and place where you want them to be.
    This is a proven method...
    Thanks
    Swaraj

  • How to call routine and pass data to routine in vofm

    Hi Experts,
    I need to update KBETR and KWERT values present in 'Conditions Tab' in Purchase Order (ME21N/ME22N).
    I have created a new customer tab in which we enter amount field and  percentage filed. When user enters some value in this and clicks on 'Conditions Tab', calculation has to be done and the calculated value has to be appeared across a specific condition type.as i am new to abap  i dont know how to create routine and pass data to routine in vofm from customised tab in me21n .
                                                                                                                                                                          Thank's in advance

    Hello Rajendra,
    You can get plenty of forums in SCN related to it. Follow below steps to create VOFM routine.
    Go to VOFM Transaction Code
    1. On the Menu Select required Application i.e Pricing
    2. Enter any Number in between 600 to 999 for Custom Developments.
    3. On entering Pop Screen appears ask for Access Key(We have to remember that Every New Routine needs an Access Key)
    4. Once the Access Key is received we can do modification.
    5. Enter the Routine Number ,description and insert the Access Key
    6. Now the ABAP Editor will open and required code can be copied from Standard SAP Routine and Custom Code Can be developed.
    7. Once the coding is completed we have to Activate the Routine
    8. Select the Routine and Go to Edit – Activate
    9. Ensure that Active check box is ticked upon Activation of the Routine.
    10. Double click on the routine will enter into ABAP Editor, we have to generate the Routine
    11. Go to Program and select Generate
    12.A screen pops up with the related Main Programs  and select all required main programs wherever the Routine is being called.
    13. Once the Routine is Generated and Activated, We need to configure the Routine in the config.
    ** Important SAP note: 156230.
    Check the below document too.
    http://www.scribd.com/doc/35056841/How-to-create-Requirement-Routines
    Regards,
    Thanga

  • Reading Variable from JSP and pass to servlet

    hello
    i have a servlet page which transfers data to a jsp page. The jsp displays the data only. Now i want to read a string from a jsp page and then pass it to the servlet.
    How can i do it?
    thnks

    hello
    this is working fine: out.println("<input
    type=\"hidden\" name=\"bookId\" value=\"+bookId+\"
    size=\"25\">") ;
    works fine
    thnksI guess you didn't understand me. Look to the difference between the following two statements:
    out.println("<input type=\"hidden\" name=\"bookId\" value=\"+bookId+\" size=\"25\">") ;and
    out.println("<input type=\"hidden\" name=\"bookId\" value=\""+bookId+"\" size=\"25\">") ;In the first you're handling the bookId variable as String, in the second it will use the actual value of bookId.

  • How to auto login and pass data (parameter) to ApEx at the same time

    Does anybody know how to automatically login to apex (e.g. from JSP page) and pass a parameter value at the same time? I can use wwv_flow_custom_auth_std to login, I can even choose a page but I cannot pass any data (at least I do not know how). If I use f?p URL syntax I can pass data but there is no way to pass login/password information.
    Any idea? Thanks Jaros

    Jaros -
    You could copy your login page and make the new page "public". On the new page, add a process before the login process that sets the value of application item FSP_AFTER_LOGIN_URL to the report page URL (with the arguments), e.g.,   :FSP_AFTER_LOGIN_URL := 'f?p=&APP_ID.:100:&SESSION.::NO::P100_X,P100_Y:&RPT_VALUE1.,&RPT_VALUE2.';Create application-level items RPT_VALUE1 and RPT_VALUE2 in the application.
    From your external page, POST to this new "login" page, passing values for the username, password, rpt_value1, and rpt_value2 items.
    Let us know if it works.
    Scott

  • Scheduling a report in background and passing data for processing

    Hi all,
    Using code (in a report1) ...i  want to execute a report (report2) in background.....but at the same time i want to pass data (an internal table and a variable) to that report2.
    is it possible to pass data like internal table to a executable report and at the same time pass the data to that report.
    Thanks in advance.
    Thanks and Regards,
    Sushil.

    hi
    regarding  Scheduling a report in background check the below thread
    SCHEDULE THE ZREPORT IN BACKGROUND DYNAMICALLY
    regards
    chandra

  • Bidirectional binding and passing data.

    I started learning Flex and I have couple of problem of which I can't see a clear solution.
    Flex 4 has two way binding, but how can I use it with data type different from strings? I receive from a web service dates and numbers, let the user edit them and send them back to the web service. Flex 4 code generator created all the necessary objects, that contain numers and dates types. Presenting them to the user in text fields (or date fields) is easy, but I can't get such a simple way to send them back. When I try two way binding it gives compilation error because it think I'm trying to force a cast from String to Number or Date. If I understand correctly, the only way to get the data back to the web service is:
    Introduce validators for Numbers and Dates
    For each of the form element, check if it is valid
    If all of them are valid, convert them manually to the appropriate type
    Populate back the original object with new values (and then send it to the web service)
    Is there a smarter way to let the two way binding work the way is meant to be? Is there some way to set the converter to use when binding back from String to Number?
    By the way, is there some simple way to ask a Form object that all the contained fields are valid?
    The second problem regards passing data among different views: is there a standard way in Flex to "share" data between different mxml files? I have two scenarios:
    A view (mxml file) uses a lot of components (other mxml files, that may include other components as well). There are a few objects, mostly data container, that I'd like to use in most of this hierarchy. Which is the best way to share these objects? Do I have to set something static in the root view and have all the other components access them statically? Or do I have to write setters in all the components in the hierarchy and pass all the objects down the hierarchy? Is there a quick way to set up a sort of "session" for this hierarchy and access it?
    A view (mxml file) presents a list of results. Selecting/clicking on one of the results the user goes to another view (mxml file, may be a module), but in the new view I need a reference to the data the user selected in the previous view. The first solution here seems to be using an event and passing the data with it, but is there any other way? I'm looking for something that can cover both this and the previous case.
    Any suggestion is welcome. Sorry if the question was already posted but I didn't find any clear answer.

    This works as expected for me: I see the text "invalid" any time a change occurs to the text in the text field that causes the value of the DoubleProperty to change.
    E.g.:
    Select the default value (42.0); press a non-numeric key to change the text. The invalidation listener is invoked.
    Delete the text. The invalidation listener is not invoked (the text is now "", which causes a NumberFormatException, the double property is "set" to zero, which is no change so there is no notification).
    Enter 0. There is no notification (the value of the DoubleProperty has not changed).
    Enter a non-zero numeric value. The invalidation listener is notified.
    Change to zero. The invalidation listener is notified
    Change to non-numeric text. The invalidation listener is not notified (the value of the DoubleProperty has not changed).
    If you're expecting the text to update to zero when non-numeric text is input: I guess the implementation is something like
    if (! converter.fromString(text).equals(value)) {
         // updateText
    in the binding's method that listens for changes in the DoubleProperty. This is similar to not seeing "1.0" appear in the text field when you type "1"; or "123.0" appearing when you type "0123", etc.

  • Continuously run a vi and pass data to it while going through TestStand sequence

    I'm very new to TestStand and I feel that what I'm trying to accoplish is very basic, but I can't seem to figure it out.
    What I am trying to do in TestStand is 
    1st step in sequence: Open a .vi (keep it open) and continuously loop through it (transmits a message every 5 seconds)
    Continue to the next step in sequence while main .vi is open and running
    Each additional step in the sequence passes data to the main .vi (running above) to transmit a new set of data
    Any detailed help would be appreciated.

    I threw this together in like 10 minutes so it's not the best but it's simple.  It updates every 1 second.  The key is using the Asynchronous Step type.  The other option is to call a sequence in a new thread and call a VI in there.  Take note of the usage of the Termination VIs.  Those are important when running Asynchronous VIs.
    Good Luck.
    Let me know if you have any other questions.
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~
    Attachments:
    AsyncVI.seq ‏9 KB
    AsyncVI.vi ‏15 KB

  • Calling a new browser window with WD Abap and passing data via POST

    Hi there,
    does anybody know whether passing data via POST method is possible when opening a new browser window from within a Web Dynpro Component? In my case I use method IF_WD_WINDOW_MANAGER->CREATE_EXTERNAL_WINDOW for opening a new browser window. Now I want to pass a big amount of data which is only possible via POST method. How can I achieve that or is it not considered inside the Web Dynpro Framework?
    Kind regards,
    Albert

    Hi Priya,
    can you please explain a little bit more what you mean? I didn't get it..
    Kind regards,
    Albert

  • Filtering and passing data to destination in Xcelsius

    Hi friend,
    I wanted to know the logic to implement a scenario in Xcelsius. Lets say I am having Year,Company and Revenue data in Xcelsius.
    Year--Company--
    Revenue
    2002--Company1--
    1000
    2003--Company1--
    2000
    2004--Company1--
    3000
    2002--Company2--
    1000
    2003--Company2--
    2000
    2004--Company2--
    3000
    2002--Company3--
    1000
    2003--Company3--
    2000
    2004--Company3--
    3000
    I will map the values of year to a combo box with insertion type = "Filter" so that only unique entries can be flowed to combo box. When user will select a entry then that year value will be flown to a destination.
    What I want is when user selects lets say 2003 in combo box then 
    2003--Company1--
    2000
    2003--Company2--
    2000
    2003--Company3--
    2000
    All data of 2003 should go to a destination where I can map this to a Bar chart.
    What should be the approach.
    Thanks,
    Gaurav

    Hi Gaurav,
    Filter combo box wroks on unique row only.To get multiple entries in Destination you need to pull the data in row wise,
    Like in your case,
    If user selects 2003you could have designed like,
                 company1    company2    company3
    2003    1000                 2000             3000
    now select this as a Source whenever user will click on 2003 FilTER combo box will take whole rowas asource and can fill it in your destination which will gain remap to your chart,
    I have tried the same thing,
    Hope it helps you,
    Thank you,

  • Passing vectors into JSP from Servlet and passing data back to Servlet

    I have been building an MVC application.
    It has a controller which instantiates classes and evokes methods to
    populate vectors. These vectors are then passed into a JSP. This part of the application works fine.
    What I am having trouble with is a new JSP I have designed; this will
    display the data that is actioned by the FORM action. This is actioned
    based on the Search criteria entered by the user. Based on this a further vector is populated and brought back to the JSP as a vector
    and this is rendered via the TABLE tag. Again this works fine.
    Against each of the rows displayed, I have a print checkbox which can be checked by the user. On checking the records they want to print, they should then hint a Print button which should go back to the Servlet and print the data. THIS IS WHERE I HAVE THE PROBLEM. On going
    back to the servlet the checkbox values are not displayed, rather
    the values that initially populate the JSP. How do I get these new values back into the vector and hence accessible from the Servlet.
    Any help with be very much appreciated.
    Chris

    Thanks for this.
    Just to clarify I am not using Struts.
    What I am having difficulties with is the fact that:
    I can't get the checked values back to the Servlet - they keep the values they have in the bean - so as part of instantiating the bean class I set the value of the item to 'off'. The user will then check
    the checkbox which should presumbably set the value to 'on'. This isn't happening because the setter method of the bean is not evoked again
    because I don't come into this JSP again - the Servlet has finished here
    and now needs to print the records. It can't do this because as
    far as it is concerned nothing has changed since it last passed through
    the vector to the JSP.
    Even when I do the following:
    Enumeration paramNames = request.getParameterNames();
    String param = null;
    while (paramNames.hasMoreElements())
    param=(String)paramNames.nextElement();
    System.out.println("parameter " + param + " is " +
    request.getParameter(param));
    what comes back is the valus of 'off' as opposed to 'on'.
    The other thing is that 'request.getParameterNames()' only works
    with the first record in the vector, i.e. it doesn't fetch any other
    records that are rendered in the <TABLE> tag.
    In desperation is there anybody out there who can help me.
    Thanks
    Chris
    I am going to assume you are using a MVC framework
    like Struts or very similar (I am assuming that from
    the language you are using).
    When the servlet passes the vector back to the JSP
    page and you render the HTML that is passed back the
    client your Vector is gone. The Vector is not
    available at the HTML level that is being viewed at
    the browser.
    When the user selects the checkboxes and submits the
    page (by clicking the print button) the controller
    servlet (called ActionServlet in Struts, yours maybe
    called something else) forwards the request to the
    appropriate JavaBean and Servlet to process the
    request. Either the JavaBean has to recreate the
    Vector (not recommended) or the processing Servlet can
    (better). You can do this by recreating the Vector
    from scratch for the HttpRequest parameters or, at the
    time of the initial request, saving Vector to a
    session and then updating with the data you get back
    from the client (again from the HttpRequest
    parameters).
    Either way you have to work with
    HttpRequest.getParameter().

  • SIT Real-time data logging and passing data

    Hello all,
    I am pretty new to LabView real-time, so I just want to confirm a few things. I am also using the Simulation Interface Toolkit.
    Let's take the Sinewave.vi from the SIT examples. I have modified it to use sinewave.dll, and run on PXI-8101. If my understanding is correct, when I click "Play", the entire Sinewave.vi is deloyed into PXI-8101, and therefore the entire VI is running at the same pace. The front panel I see on my desktop is slower snapshots of what is actually happening?
    1) Let's pretend now that the sinewave model is time critical and must run every 10ms. How do I do that? I have noticed that within the "SIT_Indicator_Indices" loop, there is a Wait 50ms block. Is that accurate?
    2) I have also added a time elapsed block that will change the Frequency and Amplitude inputs as a function of time. I made them update every 2ms. What clock are we running on? If my sinewave.mdl suddenly calculate integration (time dependent), can I use that elapsed time block as my timer to pass into the model?
    3) How fast is the sinewave.vi running anyways?
    4) Let's say I want a log of the sinewave output (a data point every 10ms). I don't need the log in real-time, I just want to do some analysis on it later. How do I do it?
    Thanks.
    Attachments:
    Sine Wave.vi ‏104 KB

    Hi Bladhart,
    When running the in the Development Environment (pressing the run button on the Real-Time vi) there will be an extra thread to handle the front panel you see. This thread will be handled just like any other thread in Real-Time and will take processor time, thus slowing down your entire application to a certain extent.  
    1. You would need to make sure everthing inside the loop can execute within 10ms and change the wait time to 10ms. Or you can use a timed loop set to run every 10ms and get rid of the wait time but again you would need to ensure everything in the loop can execute in under 10ms.
    2. The elapsed time should be running off the Real-Time system clock. 
    3. The time that the Sinewave.vi is running is system dependent, there is no set speed.
    4. You can log the data by saving to a *.tdms file. You can then use the data from the *.tdms file to do processing later. 
    <Brian A | Applications Engineering | National Instruments> 

  • SplitApp: Navigating to detail and passing data

    Dear Guru's,
    I tried to create an Purchase Order Application with JS views and splitApp element within it. I created master and detail page within code and added them to splitApp, which went fine. I am able to pull PO header id's from gateway and show them through List element in master page.
    But, i am finding issue, when i try to extract the selected header id from the list and try to pass them to show the item details in the detail page.
    For such scenario, i am able to find sample code in XML. But, unable to get sample code's with respect to JS views.
    Please help by posting some sample code's on how we should code in the controller page (to extract selected id through event) and how the detail page code should be. Here, the detail page is not created seperately. I have coded only through "new sap.m.page".
    Thanks and Regards.

    Dear Frank,
    Thanks for your input. But, i am not able to get the path, since i mapped the list input with a set of array after extracting result array from model, like shown below. So, i am not able to get the sPath (I faced issue while trying to bind the data from GW to list with Path). I am new to UI5 and it will be helpful, if you can please let me know, how to find the path of specific field within extracted model and bind them to List as well.
    for ( var i = 0; i < resultArray.length; i++) {
        clientArray[i] = resultArray[i].SoId;
    clientArray = jQuery.unique(clientArray);
    for ( var i = 0; i < clientArray.length; i++) {
        itemArray[i] = new sap.m.StandardListItem({
              title : clientArray[i],
              type : "Navigation",
         list.addItem(itemArray[i]);
    Best Regards.

  • Fetching and passing data in workflow

    Hi,
    I am creating a workflow in which I need to fetch the data from a database table depending on some data I will be getting from the Business Object standard method.
    I am doing this for the first tme and therefore have no idea how to go about it.
    I tried creating a activity step and a separate task for it.Within the task I defined the method which will give me my initial data for my database select.
    I dont know how to pass this data and write my custom code etc.
    Kindly provide me some clues or any documentation if you have.
    Thanks and Regards,
    Ameya Kulkarni

    >
    Raj  Karunanidhi wrote:
    > I believe you can search on sdn or google on your own as sdn rules doesn't allow to copy & paste a link.
    Correction: SDN rules do allow pasting specific links where they are relevant.
    What people don't like to see is generic posting of the same links over and over again to different questions, or - even worse - random posting of 'link farms'.
    The reason for this is that our first priority on posting here should be to help people, but we also expect them to do a little work on their own. Unfortunately these forums became a point hunting game where people just just typed some key words from the question into the forum search box and pasted the results in one-liners of "Check this link". How exactly is this going to help the person asking the question? If someone can't do that themselves they shouldn't be developing software.
    Instead, explainin why the person asking the question went wrong, where to look, or how to find it.
    In the spirit of "Teach a man to fish", it is perfectly acceptable to post as many links as you like.
    Lastly, there's also no need to strikethough any links either. It just makes them difficult to read.

  • Inserting multiple records in JSP and setting date format

    Hi,
    I'm looking at the possibilities for using JSP's as a web application.
    I've got a few questions about it:
    1) Is it possible to insert multiple records in the detail block of my JSP. Normally when I click the 'insert button', an insert JSP comes up, which is a html form with the possiblity of inserting only one record.
    2) Is it possible to change the format of a date field. Now a date field is displayed as 'YYYY-MM-DD'. My nls_date_format is something else.
    3) I can't get the static combo box working for the class EditCurrentRecord. The normal use combo box is no problem. Probably, I don't have the syntax correct. Could anyone provide an example for this.

    2) Just use the Calendar object. You can format the date any way you want. I am assuming that you are talking about how the date appears after a .toString() call.
    Here is how I do it (this code will probably look very bad I am trying to type into a very small space so bear with me):
    public static String traceDate(java.sql.Timestamp dt)
    try
    if (dt == null)
    return " ";
    else
    Calendar clFmt = Calendar.getInstance();
    clFmt.setTime(dt);
    return
    String.valueOf(clFmt.get(Calendar.MONTH) + 1) + "/" +
    String.valueOf(clFmt.get(Calendar.DAY_OF_MONTH)) + "/" +
    String.valueOf(clFmt.get(Calendar.YEAR)) + " " +
    String.valueOf( (clFmt.get(Calendar.HOUR) == 0) ? 12 : clFmt.get(Calendar.HOUR) ) + ":" +
    padLt(String.valueOf(clFmt.get(Calendar.MINUTE)),2) + ":" +
    padLt(String.valueOf(clFmt.get(Calendar.SECOND)),2) + " " +
    (clFmt.get(Calendar.AM_PM) == Calendar.AM ? "AM" : "PM");
    catch (Exception e)
    throw new RuntimeException(e.getMessage());
    (padLt is a custom function that just pads 0s to the left of the number)

Maybe you are looking for

  • Problems in viewer

    I have problems in viewing my clips in continuous mode in the viewer. The first two seconds work, but after that its all jagged until video stops after 5-6 seconds and only audio continues!

  • Problem in creating selection screen from screen painter

    hi ,       i am working with screens i have created a screen and in that wehn i click report button it has to ask for select options for dates.from there i will write a select quesry based on selection dates ...how to call a selection screen from scr

  • Oracle Integration to SQL Server

    We have a .Net based product based on SQL server, and we would like to integrate with another product that uses Oracle. The application needs a funtionality of communicating with other servers such that DB1 on Server1 can share data to DB2 on Server2

  • Table for Commitment Item Groups

    Does smbd. know a table for Commitment Item Groups and probably a function module which reads a commitment item group from a commitment item ? Kind Regards Alexey

  • Ambiguity in use of MIGO in subcontracting

    Hi I could not able to use MIGO for transfer of components to SC vendor with reference to Subcontracting order. (using 'transfer posting' application and in reference, purchase order is not been provided to use 541 mvt with ref to SC PO). Where as th