How to use multiple submit buttons in jsp form

hello dextors,
Im using a jsp page which have got some 'n' no submit buttons according to the Iterator ..each iterator display a row contains few fields plus submit button ..ex., If ' n' rows means 'n' respective submit buttons..the problem here is when i click any of the submit button only the value of the first row goes
to the other jsp page..no matter wat ever button I click only first row goes..
remember the page displays all the rows correctly and though the values of submit button are also different it gives the same result...
what could be the reason please help it out...
my jsp page contains
<%@ page language="java" import="java.util.*" %>
<%@ page language="java" import="java.io.*" %>
<form name="frmChangeCorrection" method="post" target="childwindow" action="popup.jsp" >
<body>
<%
RFTrackerDAOFactory factory = new RFTrackerDAOFactory();
     DailyDataDAO dailyDAO = factory.getDailyDataDAO();
     String month = request.getParameter("month");
     String year = request.getParameter("year");
     String empNo = request.getParameter("empno");          
     Collection coll = dailyDAO.getMonthyEmployeeData(empNo,month,year);
Iterator iter = coll.iterator();     
%>
<div align="center">
<center>
<table border="1" width="75%" bgcolor="#B6C7E5">
<tr>
<th width="11%">EMPNO</th>
<th width="30%">EMPLOYEE NAME</th>
<th width="11%">DATE</th>
<th width="11%">IN TIME</th>
<th width="11%" >OUT TIME </th>
<th width="15%" >TOTAL HRS</th>
<th width="11%" >MODIFY</th>
</tr>
</table>
</center>
</div>
<%
int count=0;
while(iter.hasNext())
     EmployeeData data = (EmployeeData)iter.next();
     String str=data.getDuration();
     String str1= str.substring( 0, 5 );
count++;
%>
<div align="center">
<center>
<table border="1" width="75%" bgcolor="#B6C7E5">
<tr>
<td width="11%"> <%= data.getEmpNo() %> </td>
<input type="hidden" name="empno" value="<%=data.getEmpNo() %>">
<td width="30%"> <%= data.getEmpName() %> </td>
<input type="hidden" name="empname" value="<%= data.getEmpName() %>">
<td width="11%"><%= data.getDate() %> </td>
<input type="hidden" name="date" value="<%= data.getDate() %>">
<td width="11%"><%= data.getInTime() %> </td>
<td width="11%" > <%= data.getOutTime() %> </td>
<td width="15%" > <%= str1 %> </td>
<td width="11%" > <input type="submit" name="Change" value="<% =count%>" onclick="popupResult()" >
<input type="hidden" name="Change" value="<%=count%>" >
</td>
</tr>
</table>
</center>
</div>
<%
%>
</form>          
</p>
</table>
</body>
<script>
function popupResult(){
window.open('about:blank','childwindow', 'height=300,width=300');
</script>

It is assumed that one submit button will function for a form..if you want more that one submit form try to build as many forms as u need and put the submit inside that
that will cure your problem
and y do you want to create so many submit buttons.. instead you can make use of select button

Similar Messages

  • How to create multiple toolbar buttons in jsp ?

    hi all,
    how to create multiple toolbar buttons in jsp ?
    plz help me

    mgmt
    plzhttp://www.catb.org/~esr/faqs/smart-questions.html#writewell
    How To Ask Questions The Smart Way
    Eric Steven Raymond
    Rick Moen
    Write in clear, grammatical, correctly-spelled language
    We've found by experience that people who are careless and sloppy writers are usually also careless and sloppy at thinking and coding (often enough to bet on, anyway). Answering questions for careless and sloppy thinkers is not rewarding; we'd rather spend our time elsewhere.
    So expressing your question clearly and well is important. If you can't be bothered to do that, we can't be bothered to pay attention. Spend the extra effort to polish your language. It doesn't have to be stiff or formal ? in fact, hacker culture values informal, slangy and humorous language used with precision. But it has to be precise; there has to be some indication that you're thinking and paying attention.
    Spell, punctuate, and capitalize correctly. Don't confuse "its" with "it's", "loose" with "lose", or "discrete" with "discreet". Don't TYPE IN ALL CAPS; this is read as shouting and considered rude. (All-smalls is only slightly less annoying, as it's difficult to read. Alan Cox can get away with it, but you can't.)
    More generally, if you write like a semi-literate b o o b you will very likely be ignored. So don't use instant-messaging shortcuts. Spelling "you" as "u" makes you look like a semi-literate b o o b to save two entire keystrokes.

  • Multiple submit button on jsp

    Hello,
    Can I have multiple submit button on single JSP page?
    if its possible then tell me how?
    And how to call multiple functions in JSP?
    reply me urgent

    I think this code will help you
    <html>
         <head></head>
         <script>
              function submitForm(clickedButton){
                   if(clickedButton.name =="button1"){
                        alert("button1");
                        document.multipleSubmitDemoForm.action="linkToJSPWhenFirstButtonClicked.jsp";
                   }else if(clickedButton.name =="button2"){
                        alert("button2");
                        document.multipleSubmitDemoForm.action="linkToJSPWhenSecondButtonClicked.jsp";
                   }else if(clickedButton.name =="button3"){
                        alert("button3");
                        document.multipleSubmitDemoForm.action="linkToJSPWhenThirdButtonClicked.jsp";
                   document.multipleSubmitDemoForm.submit();
         </script>
         <body>
              <form name="multipleSubmitDemoForm" method="POST" action="" >
                   <input type="button" name="button1" onClick=submitForm(this) />
                   <input type="button" name="button2" onClick=submitForm(this) />
                   <input type="button" name="button3" onClick=submitForm(this) />
              </form>
         </body>
    </html>

  • How to use the submit button without an email address

    We are changing the way one of our forms is used.  Previously the "submit by email" button opened up an email with a specific TO: address.  Now we like to have the user put in the address but still have the form attached to the email when it is opened. 
    Has anyone done this or does anyone have an idea how we can accomplish this?

    Place a HTTP submit button in your form and update the User Entered email using the below script.
    YourHTTPSubmitButton.event__click.submit.target = "mailto:" + txtEmailField.rawValue

  • Multiple Submit buttons in Adobe form !

    Hello Experts,
    Scenario :
    Form has Material number as input field and Material description should get automatically populated( maybe as a script or button , dont know yet ). Then the form is to be submitted at the backend.
    I have created an Adobe interactive form with Multiple Submit buttons( one is Submit toSAP) button , other is a normal pushbutton( for Material desc to be populated ) . I have been able to Submit data at backend.
    But problem is there is only one event on the Interactive form UI element properties.
    Please suggest how to achieve the above ? via script or sm code in web dynpro ?
    System Config :  WAS 6.4 /  SP12 .
    Need a quick resolution. Generous points for help.
    Regards,
    Sonika

    Hi Sonika,
    control_param structure is used in case of ISR forms, but I dont think your form is related to the ISR.
    Use a context attribute, and set its value to get the Material description from backend.
    Like you can define an attribute in context, "GETDESCRIPTION", and set its value at the exit event of Inputfield to "GET".
    $.parent.GETDESCRIPTION.rawvalue = "GET"
    app.eval("event.target.SAPSubmit();");
    And at the click event of the button you can write:
    $.parent.GETDESCRIPTION.rawvalue = "SET"
    app.eval("event.target.SAPSubmit();");
    And in the backend, read the value of this attribute and perform the desired action.
    Hope this helps,
    Amit

  • How to use Multiple Logos in One Smart Form?

    All,
    I have a client where they will have 2 logos for, e.g. "Invoicing" and want the form to decide which logo to print (based on plant code).
    We are using Smartforms.
    They want to use one form and based on the plant code - the form should determine which logo to print in the upper left corner of the invoice - how do you do this?
    This is not like having text to print on the form in the same place - my understanding is the logo is NOT some variable you can "clear" in the program and then use the logo you wish to show up on the printout.
    Does this have something to do with using multiple layouts within the same form?  You define a layout for each logo and then within the Smartform logic determine which layout to print?  And if that is true - does someone have sample code of how they determined which layout to use?
    Thanks - and as always - points rewarded where helpfull!
    Scott

    Hi Scott,
    Create two Graphics in Smartform window & place them wherver you want in the smart form.
    Now in Graphics node, you can find  'Conditions' tab, under this you can give the conditions.
    Hope this clue wil help you
    Regards,
    Sujatha

  • How to use many submit buttons in an one html form

    I'm doing a simple program to insert, edit, delete data from a web page to an database
    but the problem is that in an html form , you are allowed to put only 1 submit button.
    I heard that you can take the action of many buttons, for a one form using java script
    if anyone have a better idea or else have this simple java script, please help me
    Thank you very much

    Give the buttons an unique name.
    In the servlet just check if the button is pressed or not by determining if HttpServletRequest#getParameter() doesn't return null for the button name.There are a couple of "gotchas" when using this technique of dispatching with certain html controls. Most of them browser related.
    If you are using <input type="image" name="myButton"> as a submit button, be aware that Internet Explorer will submit the parameters "myButton.x" and "myButton.y" giving the x,y co-ordinates of where you clicked on the button. And won't submit any other value. So calling request.getParameter("myButton") would return null. You have to test for request.getParameter("myButton.x");
    If you are using <input type="button" name="myButton"> with Internet Explorer all of the buttons are deemed "successful". So calling request.getParameter("myButton") will never return null.
    At least thats the way it works in IE6. And thats what I'm stuck with at work right now, so thats what gets used. It may be fixed in later versions, but I don't have any info on that.
    Cheers,
    evnafets

  • Multiple Submit buttons on one form

    I'm developing an application that will have 4 buttons at the bottom of the form to do various things with the form information. One of the buttons will link to a separate web page for confirmation of the action. I tried to set a global variable and place an onclick event for the button which assigns a specific value for that variable. I then placed a <jsp:forward tag in my code that would be included if the global variable was the specific value which the button changes it to. I"m not sure if I'm being clear here. There is the forms page with the 4 buttons. It possesses all of this code. So the global variable is declared at the top. The variable is set if the 'Delete' button is clicked. And further down there is an if statement used to include the <jsp:forward tag when the 'Delete button has been pressed and this form is again being drawn up.
    What I describe doesn't work. The global variable I guess is reset when this form is drawn up a second time after the 'Delete' submit button is pressed. I''m not married to the way that I'm solving this problem at this point so I'll take any suggestions. But basically I want the Web Forms fields to be sent to this delete jsp so that I can confirm the command to delete the indicated record from the database. The three other buttons on this form are 'Add/Update', 'Rename', and 'Cancel'. The Add/Update and Rename buttons should also be submit buttons but they should link back to the same page as they are located on. The cancel button is to return the user to the index page. I have this working using a document.location.href command in the onclick event for that button.
    Brian

    Hi Brain. If I'm following your thoughts, you may want to consider replacing the four sumbit buttons with four radio control buttons and one submit button.
    I would suggest that you set your form action via a radio control button then, thru the form action, pass the form to a Servlet or JSP that contains some logic.
    <!doctype html public "-//w3c//dtd html 3.2 final//en">
    <html>
    <head>
    </head>
    <body>
    <!-- set your action here to go against a Servlet or JSP.  The
         Servlet or the JSP will contain the logic to Delete, Add/Update, Rename or Cancel
         based on the formAction value.
    -->
    <form action='ServletOrJSPNameHere' method='post'>
    <br> <input type='radio' name='formAction' value='Delete'>Delete
    <br> <input type='radio' name='formAction' value='Add/Update'>Add/Update
    <br> <input type='radio' name='formAction' value='Rename'>Rename
    <br> <input type='radio' name='formAction' value='Cancel'>Cancel
    <br> <input type='submit' value='submit'>
    <form>
    </body>
    </html>
    // this code would go into your Servlet, JSP, or worker class
    String formAction = request.getParamger("formAction");
    // test for null value  
    if ( formAction == null ) { 
         // reload the page with a message to pick a radio button
    else if ( formAction.equals("Delete") {
       doTheDeleteProcessing();
    else if ( formAction.equals("Add/Update") { 
       doTheAdd/UpdateProcessing();
    else if ( formAction.equals("Rename") {
       doTheRenameProcessing();
    else {
       doTheCancelProcessing();
    }I hope this helps.

  • Multiple submit buttons in flash form

    I need to make this page so that when the submit button is
    pressed, the action page will be based on the cfforgroup, not on an
    overall form action. Essentially I have 2 main tabs and multiple
    tabs underneath each one of those that need seperate action calls
    on submit:
    <cfquery name="modelinfo" datasource="inventory">
    SELECT cd_manufacturer.name + ' ' +
    model + ' ' +
    processor_type + ' ' +
    processor_speed AS system,
    cd_manufacturer.name + ',' +
    model + ',' +
    processor_type + ',' +
    processor_speed AS val_list
    FROM cd_manufacturer
    INNER JOIN cd_model ON
    cd_manufacturer.pk_manufacturer=cd_model.fk_manufacturer
    </cfquery>
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <title></title>
    </head>
    <cfquery name="modelinfo" datasource="inventory">
    SELECT cd_manufacturer.name + ' ' +
    model + ' ' +
    processor_type + ' ' +
    processor_speed AS system,
    cd_manufacturer.name + ',' +
    model + ',' +
    processor_type + ',' +
    processor_speed AS val_list
    FROM cd_manufacturer
    INNER JOIN cd_model ON
    cd_manufacturer.pk_manufacturer=cd_model.fk_manufacturer
    </cfquery>
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <title>IT Asset Tracking System Main Menu</title>
    </head>
    <body>
    <cfform format="flash">
    <cfformgroup type="tabnavigator"><!--begin main
    navigation-->
    <cfformgroup type="page" label="Asset"><!-- Begin
    sub page ASSET---->
    <cfformgroup type="tabnavigator"><!-- Begin sub
    page ASSET navigator---->
    <!---ADD ASSET START (uses asset_processes/newAsset.cfm
    for processing)---------------------->
    <cfformgroup type="page" label="Add Asset"
    action="asset_processes/newAsset.cfm">
    <cfset vdate=DateFormat(Now(), "mm/dd/yyyy")>
    <cfinput type="datefield" name="cdate" width="150"
    label="Entry Date" validateat="onSubmit" validate="noblanks"
    required="yes">
    <cfselect
    label="System Type"
    name="modelinfo"
    query="modelinfo"
    required="yes"
    multiple="no"
    display="system"
    value="val_list"
    width="350">
    </cfselect>
    <cfinput type="text" name="location" width="150"
    label="location" validateat="onSubmit" validate="noblanks"
    required="yes">
    <cfinput type="text" name="user" width="150" label="user"
    validateat="onSubmit" validate="noblanks" required="yes">
    <cfinput type="submit" name="submit" value="Create New
    Asset" />
    </cfformgroup><!--end page Add Asset -->
    <!------------END PAGE ADD
    ASSET------------------------------------------------------>
    <!--------------- Assign LotID START (uses
    standard/assignLotID.cfm for processing)--->
    <cfformgroup type="page" label="Assign lotID">
    </cfformgroup><!--end page Assign LotID -->
    <!-----------------ASSIGN LOTID
    END------------------------------>
    <!----------------------Add to surplus
    START--------------------->
    <cfformgroup type="page" label="Add to Surplus">
    </cfformgroup><!--end page add to surplus -->
    <!------------------END ADD TO
    SUPLUS------------------------------>
    <!---------------------------ADD OTHER
    START----------------------->
    <cfformgroup type="page" label="View Inventory (not
    surplused)">
    </cfformgroup><!-- end page "View Inventory (not
    surplused)"-->
    <!---------------------------END
    OTHER---------------------------->
    </cfformgroup><!-- end sub page ASSET--------->
    </cfformgroup><!-- end sub page ASSET
    navigator---->
    <cfformgroup type="page"
    label="maintenance"><!--begin sub page maintenance-->
    </cfformgroup><!--end sub page maintenance-->
    </cfformgroup><!-- end main navigation -->
    </cfform>
    </body>
    </html>

    Here's my code and thanks for your help!
    <!--- begin form --->
    <cfform format="flash" width="850" height="750"
    action="insert.cfm" skin="haloblue">
    <!--- begin tab navigator --->
    <cfformgroup type="tabnavigator">
    <!--- Begin check out tab --->
    <cfformgroup label="Equipment Check-Out" type="page"
    width="600">
    <cfinput type="datefield"
    name="dueDate"
    label="Due Date:" message="Please Select a Valid Due Date"
    validate="date"
    required="yes"
    width="100">
    <!--- Equipment Information --->
    <cfselect enabled="yes" name="equipTag" size="1"
    label="Select Property Tag:" required="yes" multiple="no"
    width="100">
    <cfoutput query="allEquipTag">
    <option value="#equipTag#">#equipTag#</option>
    </cfoutput>
    </cfselect>
    <!--- Person Information --->
    <cfinput type="text"
    name="csulbID"
    label="CSULB ID:"
    message="A CSULB ID is required and must be 9 Digit!"
    mask="999999999"
    required="yes"
    size="10"
    maxlength="9" >
    <cfinput type="text"
    name="fName"
    label="First Name:"
    message="A First Name is required!"
    required="yes"
    size="10" >
    <cfinput type="text"
    name="lName"
    label="Last Name:"
    message="A Last Name is required!"
    required="yes"
    size="10" >
    <cfinput type="text"
    name="phone"
    label="Phone Number:"
    message="Phone Number is required!" mask="999-999-9999"
    required="yes"
    size="10" >
    <cfinput type="text"
    name="email"
    label="Email:"
    message="Email required! i.e. [email protected]"
    required="yes"
    validate="email"
    size="15" >
    <cftextarea name="notes"
    label="Additional Notes:"
    rows="5"
    width="300"/>
    <cfinput type="submit" name="btnSubmit" Label='checkOut'
    tooltip="Submit Check-Out Information" id="btnSubmit"
    value="Submit">
    <!--- end check-out tab--->
    </cfformgroup>
    <!--- start Check-In Tab --->
    <cfformgroup label="Equipment Check-In" type="page"
    width="850" height="700">
    <!--- start data grid--->
    <cfgrid name="equipCheckInGrid"
    query="equipCheckIn"
    selectmode="browse"
    griddataalign="left"
    height="300"
    width="800">
    <!--- Don't show all columns and change header
    name--->
    <cfgridcolumn name="dueDate" header="Due Date">
    <cfgridcolumn name="checkOut" header="Checked Out">
    <cfgridcolumn name="checkIn" header="Checked In">
    <cfgridcolumn name="csulbID" header="CSULB ID">
    <cfgridcolumn name="fName" header="First Name">
    <cfgridcolumn name="lName" header="Last Name">
    <cfgridcolumn name="phone" header="Phone">
    <cfgridcolumn name="email" header="Email">
    <cfgridcolumn name="notes" header="Additional Notes">
    <cfgridcolumn name="equipTag" header="Equip Tag">
    <!--- end data grid--->
    </cfgrid>
    <!--- start input fields--->
    <cfinput type="text"
    name="checkInEquipTag"
    label="Equipment Tag:"
    bind="{equipCheckInGrid.dataProvider[equipCheckInGrid.selectedIndex]['equipTag']}"
    size="15">
    <cfinput type="text"
    name="checkInDueDate"
    label="Due Date:"
    bind="{equipCheckInGrid.dataProvider[equipCheckInGrid.selectedIndex]['dueDate']}"
    size="15">
    <cfinput type="text"
    name="checkInCheckOut"
    label="Checked Out:"
    bind="{equipCheckInGrid.dataProvider[equipCheckInGrid.selectedIndex]['checkOut']}"
    size="15">
    <cfinput type="text"
    name="checkInCheckedIn"
    label="Checked In:"
    width="150"
    value="#DateFormat(now(), "MM/DD/YYYY")#">
    <cfinput type="text"
    name="checkInCSULBID"
    label="CSULB ID:"
    bind="{equipCheckInGrid.dataProvider[equipCheckInGrid.selectedIndex]['csulbID']}"
    size="15">
    <cfinput type="text"
    name="checkInFName"
    label="First name:"
    bind="{equipCheckInGrid.dataProvider[equipCheckInGrid.selectedIndex]['fName']}"
    size="15">
    <cfinput type="text"
    name="checkInLName"
    label="Last Name:"
    bind="{equipCheckInGrid.dataProvider[equipCheckInGrid.selectedIndex]['lName']}"
    size="15">
    <cfinput type="text"
    name="checkInPhone"
    label="Phone:"
    bind="{equipCheckInGrid.dataProvider[equipCheckInGrid.selectedIndex]['phone']}"
    size="15">
    <cfinput type="text"
    name="checkIneEmail"
    label="Email:"
    bind="{equipCheckInGrid.dataProvider[equipCheckInGrid.selectedIndex]['email']}"
    size="15">
    <cftextarea type="text"
    name="checkInNotes"
    label="Additional Notes:"
    bind="{equipCheckInGrid.dataProvider[equipCheckInGrid.selectedIndex]['notes']}"
    width="300"
    rows="5"/>
    <cfinput type="submit" name="btnUpdate" Label='update'
    tooltip="Submit Update Information" id="btnSubmit"
    value="Check-In">
    <!--- end Check-In Tab --->
    </cfformgroup>
    <!--- overdue tab --->
    <cfformgroup label="Equipment Over-Due" type="page"
    width="850" height="700">
    <cfgrid name="equipOverDueGrid"
    query="equipOverDue"
    selectmode="browse"
    griddataalign="left"
    height="300"
    width="800">
    <!--- Don't show all columns and change header
    name--->
    <cfgridcolumn name="dueDate" header="Due Date">
    <cfgridcolumn name="checkOut" header="Checked Out">
    <cfgridcolumn name="checkIn" header="Checked In">
    <cfgridcolumn name="csulbID" header="CSULB ID">
    <cfgridcolumn name="fName" header="First Name">
    <cfgridcolumn name="lName" header="Last Name">
    <cfgridcolumn name="phone" header="Phone">
    <cfgridcolumn name="email" header="Email">
    <cfgridcolumn name="notes" header="Additional Notes">
    <cfgridcolumn name="equipTag" header="Equip Tag">
    <!--- end data grid--->
    </cfgrid>
    </cfformgroup>
    <!--- end tab navigator--->
    </cfformgroup>
    </cfform>

  • How to use email submit button with webmail; not a desktop email client

    We've made a form that will submit data via an xml attachment to an email. It was all tested as fine (using Adobe Reader 7...) and has been deployed - DISASTER.
    People using Adobe Reader 8 cannot choose to save the xml file. AR 8 just opens up their default email client. If they use webmail and it's not on the list of default email clients (IE/Tools/Options/Programs)then we don't seem to be able to get the xml data out.
    How can you get AR 8 to give you a choice of what to do with the xml data when a user clicks the Submit by email button? Just like the email client choice in AR 7!!!! Please, if anybody from Adobe sees this, help us...

    Did you ever get a solution to this problem. I have several clients who use internet email and it always worked with earlier versions of reader because it would display the "Select Email Client pop up.
    Please let me know.

  • How to use Multiple Keywords in a Search Form?

    I'm currently using a bind variable on the view object to generate a search form where the user enters one keyword that is applied to the WHERE cause of the SQL query.
    The problem is I'm trying to implement a Google-type search, where the user can enter multiple keywords in a single text input area. I then want to parse out those keywords and search the database on each keyword (similar to a Google search.) Can someone please help me point me in the right direction as to where / how to code in the appropriate hooks to accomplish this?
    Example:
    (user input) Enter Search Keywords: keyword1 keyword2 keyword3.. keywordn
    database query:
    Select item from table where (desc like '%keyword1%') or .. (desc like '%keywordn%') or
    (category like '%keyword1%') or .. (category like '%keywordn%')

    Can't you parse what was entered and create a number of view criteria rows, then apply them? At that point, they would be 'OR'd together'.

  • How to get Default submit button of system form?

    Hi all,
    For system forms default button is not set so how will know which is the default button.
    By default all system forma have button UID "1" as default button for Employee master
    Button UID "1" is for cancel and "2" is for Add/Ok/Update.
    pl Guide,
    Atul

    Hi,
    Try This.....
    oform = sbo_application.Forms.GetFormByTypeAndCount("134", "1")
       MessageBox.Show(oform.DefButton)
    Thanks
    Shafi

  • 'http submit button' in Adobe forms

    Hi,
    How to use 'http submit button' in Adobe Interactive form layout?
    Actullay we need to generate xml from the data in Adobe forms.
    Thanks & Regards,
    Jeba.

    Hi,
    Please look into the blog link which explains how to use HTTP submit button .
    http://blogs.adobe.com/stevex/2006/05/http_submit.html
    Nanda

  • How to distribute a form with multiple submit buttons?

    I have a form that has multiple submit buttons depending on the information that is being entered and then who the information should go to.  When I try to disbribute the form, I get an error message stating the following, "Acrobat is unable to distribute this form because it contains multiple submit buttons with different formats or return URLs."  Is anyone able to let me know how I can distribute the form?

    Sounds as if you need your own web script to process submissions - written by an experienced web programmer (I very strongly recommend someone familiar with all the latest security weaknesses, and not a project for anyone else). Your needs are (it seems to me) too complex for Adobe's automatic system.

  • Using submit button in jsp to set a boolean value

    Hello,
    any help would be much appreciated.
    I have put the following submit button in jsp:
    <TR>
    <TD ALIGN=CENTER><INPUT TYPE="SUBMIT" NAME="next" VALUE="Next"></TD>
    </TR>
    I have then put the following java code in:
    <%
    boolean next = (request.getParameter("next") != null);
    session.setAttribute("next", next);
    boolean previous = (request.getParameter("previous") != null);
    session.setAttribute("previous", previous);
    int row = 1;
    session.setAttribute("row", row);
    %>
    now I expected when user hit next button and jsp was forwarded to another jsp that when I did the following:
    //get session attributes for next/previous action from previous jsp
    boolean next = (Boolean) session.getAttribute("next");
    boolean previous = (Boolean) session.getAttribute("previous");
    int row = (Integer) session.getAttribute("row");
    that the boolean next would be set to true, but it is set to false and I do not understand why?
    Can somebody help please?
    Cheers Joe.

    One reason i see you are getting false is that the default value for a boolean type is false and your code doesn't set it to true . So whatever be the page Next or previous , It would be set to false.. Try doing something like
    boolean next=true;
    next=request.getParameter("next");
    if(next.equals(""))
    // Your Business Logic goes here.
    Hope this helps.

Maybe you are looking for