Handling multiple submits in single form with JSP

HI,
I need to handle multiple submits in single form in a JSP.
<html>
<body>
<form action="/Compute" method="post">
<input type = "Submit" value="Find"/>
<input type = "Submit" value="Add"/>
<input type = "Submit" value="Delete"/>
</form>
<body>
<html>
/Compute wld take the control to a servlet named ComputeController.java .
In this servlet how should I distinguish which Submit has been clicked(Find or add or Delete).
TIA

Give the submit button a name. It will be sent as well, so you can see it in the request variables.

Similar Messages

  • Multiple users of single forms

    Hi,
    I have a situation whereby I'd like to be able to have multiple users haveing input to a single form. This is to establish a type of jobcard system.
    e.g.
    A form is distributed out to a number of people, they complete a certain section, the forms are then submitted ie returned to the distributor, from here they can be forwarded onto someone else who will compete aditional information onto the form and again submit it.
    The coordinator can then review the form data and then forward or save the forms off.
    This is likely to be from a PC to PC in the first instance and PC to tablet in the second, ideally with the ability to add photographs.
    Many Thanks

    Hi,
      WIth FormsCentral, you can share a single form with multiple users as Co-Authors. Your shared user will have right to edit/modify/save the form at anytime.
    Now, your shared users will need to create (free or paid) accounts in FormsCentral to be able to collaborate on the form.
    Please take a look a this FormsCentral tutorial, Share and collaborate section: http://forums.adobe.com/docs/DOC-1413
    Thanks,
    Lucia

  • How can I allow the application to line through a field that has been locked after being digitally signed?  We have multiple sections on a form with some fields being proposed information and other in another section having the approved information. once

    How can I allow the application to line through a field that has been locked after being digitally signed?
    We have multiple sections on a form with some fields being proposed information and other in another section having the approved information. once the approved information is entered we line through the proposed field so the data entry clerk won't pick up the wrong information.  However we are receiving an error when attempting to enter data  in the field which we have this edit.  Error property: line through cannot be set because doing so would violate the document permission setting.  any idea how we can get around this issue?

    You can control which fields are locked down after signing by setting up a collection. Then those that are not locked can be changed after signing. If this is not possible, then the line outs must occur prior to signing.

  • Multiple submit on single form

    hi all,
    My current system have 1 submit button with single form. This submit button will call file_content.upload.
    htp.p('function on_submit() {');
    htp.p('     ...the rest of my code here..');
    htp.p('     document.forms[0].submit();');
    htp.p('     return true;');
    htp.p('}');
    htp.p('<form enctype="multipart/form-data" method="post" action="file_content.upload">');
    htp.p('     ...the rest of my code here..');
    htp.p('<input type="button" id="btn_Submit" value="Submit" onclick="on_submit()"></form>');My question is, i want to enhance this by adding additional 1 submit button with value "Save". But this new "Save" button will call/trigger different file. This new button will call file_content.update. How to accomplish this and how to differentiate these 2 button?
    htp.p('<input type="button" id="btn_Submit" value="Submit" onclick="on_submit()"> 
              <input type="button" id="btn_Save" value="Save"></form>');Appreciate any help from you guys. Thanks
    Edited by: morezack on Jul 21, 2011 2:08 PM

    You again did accident like one below
    multiple submit button on a single form
    Take care..
    Regards,

  • Multiple Input ports - Single Form

    Hi,
    I have a RFC which has multiple input ports. How do i use a single form to provide data to all the input ports.
    Regards
    Bharathwaj

    Hi,
    you can create the single form direct, if you pull a line out of the RFC, then the form must be created with the fields. If not, then you have to create it manually and map the fields with the input port.
    Best Regards,
    Marcel

  • How to create a form with jsp

    I want to create an HTML form using jsp.
    It has a couple of selection boxes. The options for the selection box needs to be read from a file.
    As I understand it can create the form in HTML. And somhow uses jsp to read a file on the server get, the data and create selection box. I can have a class on the server side that does the actual read - forexample
    SelData.class.
    Would appreciate it if some one can outline how this is done.
    - thanks

    * Pass the data used to populate the select options to the JSP page in the form of a bean.
    * In the JSP page, iterate through the bean, using the data to "fill in" the attributes and body of the option tag.
    This tutorial should help a great deal with these concepts: http://java.sun.com/webservices/docs/1.1/tutorial/doc/JSPIntro.html#wp69778

  • MULTIPLE SESSIONS IN SINGLE FORM

    HELLO ALL
    HOW CAN I HAVE MULTIPLE SESSIONS IN A SINGLE FORM? MY REQUIRMENT
    IS SUCH THAT I HAVE A CONTROL BLOCK WHICH IS MARKED AS UPDATED
    WHEN USER PRESS COMMIT BUTTON, BUT I WANT TO ROLL IT BACK AND I
    HAVE ISSUED SOME UPDATE COMMANDS MYSELF WHICH I WANT TO BE
    COMMITED. ANYONE HAVE ANY IDEA?
    THANKS IN ADVANCE

    Give the submit button a name. It will be sent as well, so you can see it in the request variables.

  • Updating multiple records from single form (ASP)

    I have a nested repeat region.
    I have created in the parent, a form with 3 fields and an update button.
    the child records all have multiple columns, 3 of which correspond to the parent.
    Athe parent is bound to the child records by the shipmentID
    I need to be able to update all child records from the form in the parent.
    The case is this.
    The child records are orders with shipdates and frequencies
    The parent contains a form with fields for shipdate and frequency
    The administrator needs to change the shipdate and/or frequency for all child records.
    (The child records are forms as well--but that's another issue that works fine)
    Shipment ID
    Date Field
    Freq Field
    UPDATE Button
    ShipmentID
    Record 1
    Data case1
    Date
    ShipmentID
    Record 2
    Data case 2
    Date
    I am doing this in classic asp with an SQL database.
    So how do I get the form to update all record
    [Subject title edited by moderator to make clear ASP involved]

    Hi,
    This is one of those questions that would require far more explanation that is reasonable to expect in a forum. You should do a little poking around in the nearest Barnes & Nobles. About a half hour in a chare with a good ASP book and vanilla latte should have you on the right track.
    Lawrence   *Adobe Community Expert*
    www.Cartweaver.com
    Complete Shopping Cart Application for
    Dreamweaver, available in ASP, PHP and CF

  • Combining Multiple Rows into single row with multple columns

    Hi Experts,
    I have the following requirement, kindly help me.
    I have data in my table like below.
    ID NAME DEPT
    1 Sam 10
    1 Sam 20
    2 alex     30
    2 alex 40
    2 alex 50
    3 vinod 60
    3 vinod 70
    I want to show the same data into single row with dynamically generating columns for DEPT. I want show like below.
    ID NAME DEPT1 DEPT2 DEPT3
    1 Sam 10 20
    2 alex 30 40 50
    3 vinod 60 70
    It's urgent requirement, kindly help me.
    Thanks in advance.

    Right I've had my drink, so what was this "urgent" question then?
    798616 wrote:
    I have data in my table like below.
    ID NAME DEPT
    1 Sam 10
    1 Sam 20
    2 alex     30
    2 alex 40
    2 alex 50
    3 vinod 60
    3 vinod 70
    I want to show the same data into single row with dynamically generating columns for DEPT. I want show like below.Dynamic numbers of columns eh! Tricky.
    If you understand how SQL statements are executed it's along these lines...
    1. Open Cursor
    2. Parse SQL statement and determine columns
    3. Bind in any input values
    4. Fetch data
    5. Bind out values to columns
    6. Repeat step 3 until no more data
    7. Close cursor
    Now, you're expecting that you can determine the columns (step 2) from the fetched data (step 4 onwards). You can't. The SQL engine needs to know the expected columns before any data is fetched so, it can't base the number of columns on the data itself.
    If you need that requirement, you would need to query the data first and build up a dynamic query based on the data and then execute that dynamically built query to fetch the data and pivot it into those columns, which means that you have queried the data twice. Not good practice and not good (or simple) coding.
    What you're talking of doing is something that should be handled at the presentation/interface layer, not as part of the data fetch.
    Typically these sorts of things are handled most easily in report generation/writer tools such as Oracle Reports, Business Objects etc. where they fetch the data from the database and then process it to format it on the display, pivoting the results as required.
    It's not something that lends itself to be easily achieved in SQL. Yes, SQL can do pivoting of data quite easily, but NOT with a dynamic number of columns.
    If you were to specify that there is a maximum number of columns that you could get (rather than wanting it dynamic), then you can do it simply in SQL with the max-decode method...
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (select deptno, ename, row_number() over (partition by deptno order by ename) as rn from emp)
      2  --
      3  select deptno
      4        ,max(decode(rn,1,ename)) as ename1
      5        ,max(decode(rn,2,ename)) as ename2
      6        ,max(decode(rn,3,ename)) as ename3
      7        ,max(decode(rn,4,ename)) as ename4
      8        ,max(decode(rn,5,ename)) as ename5
      9        ,max(decode(rn,6,ename)) as ename6
    10        ,max(decode(rn,7,ename)) as ename7
    11        ,max(decode(rn,8,ename)) as ename8
    12        ,max(decode(rn,9,ename)) as ename9
    13        ,max(decode(rn,10,ename)) as ename10
    14  from t
    15  group by deptno
    16* order by deptno
    SQL> /
        DEPTNO ENAME1     ENAME2     ENAME3     ENAME4     ENAME5     ENAME6     ENAME7     ENAME8     ENAME9     ENAME10
            10 CLARK      KING       MILLER
            20 ADAMS      FORD       JONES      SCOTT      SMITH
            30 ALLEN      BLAKE      JAMES      MARTIN     TURNER     WARD
    SQL>

  • Forms with JSP

    I want to use the return values of an HTML form with a post method to a .jsp file:
    <input type="text" name="xxx">...
    In my .jsp that submit the information, how could i define the requested parameters from the form and how could i manage to use them to insert or compare the informations to the database ??
    Maybe they are special classes ?
    Thanks for all the help you could bring me.
    NICO

    Nico,
    I would also recommend posting this to the JSP discussion forum since it is a 'generic' JSP question.
    WEbsites to try for more JSP info include:
    http://htmlguru.com http://www.insidedhtml.com
    Good luck.
    Laura

  • Insert Multiple records in single form

    Hi all,
    I have already come across inserting multiple rows into a table using ADF BC. The solution to this is in the following thread
    Re: How to create multiple new rows in ADF Table?
    However,
    The above solution is useful when we want to enter new values along with all the table entries getting displayed.
    What can I do If I dont want all the table values but just an 'AddEntries' page where I can only add new rows without having the entries in table getting displayed.
    Like,
    Say, a form has 5 rows
    Each row has empId, eMailSlNo ,eMail attributes
    EmpId is same for all 5 records but emailId is different.
    EmpId and eMailSlNo make the PK.
    empId generated using sequence.
    Now on submitting the form, I want all five records to be inserted.
    (can i use ADF form instead of ADF table for the ViewObject in this case. I tried ADF form but i could only insert 1 record at a time).
    I'm using 10.1.3.4
    Please help.
    Thanks in advance,
    Shri
    Edited by: newtoOTN on Dec 29, 2009 6:02 PM

    Hi Shri,
    ADF Form is meant for single insert/update. For multiple insert/update/delete using collection UI like table is preferred. I guess that either your db table or the UI table design has flaw (In my opinion but i don't know your usecase fully, so my guess might b wrong).
    I would suggest,
    - make EmpId as PK
    - have another table to store EmpId(foreign key),emailSiNo, email
    - Have master-detail relationship between both the db tables in ADF BC.
    - Create master-detail table UI and on selection of master, display detail and if no records found add records and commit.
    check these examples:
    http://www.oracle.com/technology/products/jdev/tips/mills/MasterDetailSync/Master_Detail_Synchronization_in_ADF_Faces.html
    http://andrejusb.blogspot.com/2007/06/create-edit-and-delete-operations-in.html
    Hope this makes sense.
    ~K

  • How to print multiple pages of same form with one print command

    Hi,
    I have created a cheque print form in smartform. There is provision to print multiple cheques. I give multiple cheque numbers from my selection screen and for each cheque the smart form is called in loop.  Currently I get preview of 1st cheque then I print 1st cheque then click on back, cancel or exit button and then I get preview of second cheque ans so on...
    Now I want to print all the cheques with one print command.
    Please advice.
    Regards,

    Instead of looping at the smartform multiple times, pass an internal table with the data content to the smartform and use loop/ Table youroption  in ur smartform in the main window.in this way u can achieve printing multiple cheques at once and avoid previewing the document several times.
    Edited by: Mithun Shetty on Feb 25, 2011 8:56 PM

  • EBS R12 - Multipl Instance using Single Databse ( with Different SID )

    Hi,
    Is it possible to create Multiple R12 EBS instance (i.e. TEST and DEV ), in to Single Database ( using same database binary ).
    Or Can these different EBS instance , configured with Single Database using differant Oralce SID ( means creating Multiple databases with Single binary )
    Please guide,
    Thanks

    Is it possible to create Multiple R12 EBS instance (i.e. TEST and DEV ), in to Single Database ( using same database binary ).No.
    Or Can these different EBS instance , configured with Single Database using differant Oralce SID ( means creating Multiple databases with Single binary )No -- Each instance/database should have its own ORACLE_HOME.
    Thanks,
    Hussein

  • Conflict sending booking form with jsp and fmt:message key=

    I have developed my new web page using jsp and together with this i am using jBoss 4.0.5.GA!
    The web page has 6 different languages so i have used the <fmt:message key=" " /> tag system for each language.
    On the web page there are a booking form who has two pages, bookings.jsp and booking_sent.jsp.
    The problem i have is when i send the form it opens a page where you only see all the tags, no text at all. For more information follow this link and try out the form; http://www.neptunediving.com/neptune/general/bookings.jsp/
    bookings.jsp and booking_sent.jsp looks exactly the same, except the header text. There most be some sort of conflict here, either with the <fmt:message key=" " /> tag system or maybe with the String message i use to retrieve the information from the form. Both <fmt:message key=" " /> tag system and the String message use the word message so i have tried to change the String message to String msg instead but i still get the same result.
    I have tried everything but i cannot solve this problem. So i wonder if there is anybody out there who can help me with this?

    Nope, can't delete posts on this forum,
    I have developed my new web page using jsp. I have done a booking form,
    There are two pages, bookings.jsp and booking_sent.jsp.
    The page has 6 different languages so i have also used the <fmt:message key=" " /> tag system for each language.
    The problem i have is when i send the form it opens a page where you only see all the tags, no text at all.
    For more information follow this link and try out the form; http://www.neptunediving.com/neptune/general/bookings.jsp/
    When you fill out the form and click send you should come to booking_sent and you do but the page is only full of tags, no text. Booking_sent looks exactly the same as bookings, except the header so why should not this work. I have tried everything but i cannot solve this problem. So i wonder if there is anybody out there who can help me with this?
    Tried going to that URL and got an error page served by Apache Webserver
    Maybe you haven't got the correct connector going between the webserver and the application server?

  • Multiple copies in Adobe form with different header text

    Hi All,
    I have created Adobe form for Invoice and now my requirement is when we create an invoice it should generate 4 copies with different texts like original copy, duplicate copy and triplicate copy.
    I know its possible in samrtforms using the copy window and maintaing text there.Is it possible in adobe form , if yes how can we achieve this.
    Regards
    Lalit

    Are you using a custom driver program?
    If yes, then loop the function module with the number of copies you have.
    the copy name should be a variable which should be passed to the form in the loop change the value of the copy control accordingly.
    Please let me know, if you see any issues.
    Thanks,
    Rakesh

Maybe you are looking for

  • Message Mapping, get rid of ns1: prefix

    Dear Experts, do you know how to get rid of the "ns1:" prefixes in the target structures, after a (graphical) message mapping was made? Should I use an additional XSLT/JAVA/... mapping step or is there any "more elegant" way to do this? Any comments

  • Dynamically  filename is required in CC but not reuired in Target field

    HI, my requirement is to create filename dynamically(UDF) in Receiver communication channel but I dont want the name should be populated in the target field as target field is not provided by business. I received the below UDF from SDN    String date

  • X-FI2 Random Play All Problem

    HI All, I've spotted another prob with X-FI2 whichI think may be linked to it not recognising all albums on the player. Has anyone else noticed that if you go to the DJ option and choose Random Play All, it chooses only 00 tracks (the same tracks eve

  • Audio Is out of sync in DVDSP

    Audio Is out of sync in DVDSP but the FCP file used for QT export is fine. The compressed AC3 even seems streached like it's out of sync in the beginning but gets closer to in-sync as it plays down the timeline. I've used "Clip start trim" to adjust

  • Problems unzipping files

    Hello there, I tried to create two small programs: Zip and UnZip, using the java.util.zip package. The Zip file works perfectly and WinAce can read the files zipped. But the UnZip program doesn't seem to work: it unzips the files almost correctly. I