HELP!!!!!!!!! 3 Submit Buttons on 1 JSP page

Hi,
I would really appreciate any assistance to my question. I have 3 submit buttons that need to be passed to another JSP page.
1. Is it possible to use submit 3 times like here?
<input type="submit" name="btnSub" value="Modify">
<input type="submit" name="btnSub" value="Remove">
<input type="submit" name="btnSub" value="Pssword Reset">
2. Below is my code. Can you show me how to pass the values from the 3 submit buttons?
Thanks in Advance!
</form>
</td>
<td width=212 style='width:159.0pt;background:#FFE599;padding:0in 0in 0in 0in'>
<!-- Profile Maintenance ------------------------------------------------------------------------->
<div align=center>
<table border=2 cellpadding=0 style='mso-cellspacing:1.5pt;mso-padding-alt:
0in 0in 0in 0in'>
<form NAME="queryUserName" method="GET" ENCTYPE="application/x-www-form=urlencoded"
action="securityProfile.jsp"> <!-- onSubmit = "return checkForm();"-->
<tr>
<td colspan=2 style='padding:0in 0in 0in 0in'>
<p class=MsoNormal align=center style='text-align:center'><b><span
style='font-size:10.0pt;font-family:Geneva;color:#990000'> Profile Maintenance </span></b> </p>
</td>
</tr>
<tr>
<td align=center colspan=2 style='padding:0in 0in 0in 0in'>
<select name="UserID" size="5">
<option selected value="NO_VALUE"> --Select an Admin-- </option>
<% while(rset.next())
v_ID = rset.getString("ID");
v_Name = rset.getString("Name");
%>
<option value="<%= v_ID %>"><%= v_Name%></option>
<% System.out.println("List of Options counter: *** " + i + " ***"); %>
<!-- <option value="<%= i %>" > <%= v_Name%> </option> -->
<%
     i = i + 1;
%>
</select></font></td>
</td>
</tr>
<tr>
<td align="center" style='padding:0in 0in 0in 0in'>
<p class=MsoNormal><span style='font-size:7.5pt;font-family:Geneva;
color:#990000'> To modify admin's access to Corp Functions, Business Units, & Dept IDs: </span><br>
<input type="submit" name="btnSub" value="Modify Profile"> </p>
</td>
</tr>
<tr>
<td align="center" style='padding:0in 0in 0in 0in'>
<p class=MsoNormal><span style='font-size:7.5pt;font-family:Geneva;
color:#990000'> To remove an admin: </span><br>
<input type="submit" name="btnSub" value="Remove Admin"> </p>
</td>
</tr>
<tr>
<td align="center" style='padding:0in 0in 0in 0in'>
<p class=MsoNormal><span style='font-size:7.5pt;font-family:Geneva;
color:#990000'> To change admin's password: </span><br>
<input type="submit" name="btnSub" value="Password Reset"> </p>
</td>
</tr>
</form>

When implementing the code below, it only reads the first form, and then stops there. It doesn't execute the 2nd form.
<form name='form_1' action='T2.jsp'>
<input type=hidden name="user" value="Me">
<input type=submit value='Button1'>
<form name='form_2' action='T3.jsp'>
<input type=submit value='Button2'>
</form>
</form>
If I put each form separtely like below, then it returns nothing.
<form name='form_1' action='T2.jsp'>
<input type=hidden name="user" value="Me">
<input type=submit value='Button1'>
</FORM>
<form name='form_2' action='T3.jsp'>
<input type=submit value='Button2'>
</FORM>
What's my other alternative? I would appreciate any help.

Similar Messages

  • Broken submit button on 2 firefox pages

    broken SUBMIT button on 2 firefox pages:
    http://input.mozilla.com/en-US/feedback#sad
    http://input.mozilla.com/en-US/feedback#idea
    Don't they want to know? hate to waste my time typing for no reason!

    Both submit buttons work here in 10.0.2. If you have javascript disabled, enable it. Or if you have noscript addon enabled, disable it. If none of that works then
    Help => Restart with addons disabled and try it again. If it works then you have an addon(s) that are in conflict. Post back here with results.

  • Unable to find Submit button in iExpences OAF Page

    Hi Everyone,
    I want to know the functionality behind the submit button of iExpences OAF Page.
    Navigation is
    IExpences - Create Expence report -Review - Submit button.
    button i am unable to find the submit button in personalization.
    Could you any one help on this!!
    Thanks in Advance!!
    With Best Regards

    Check in About this Page, if the Button Name is present.
    Sometimes depending on the condition, there might be a change in the text of the button .. so donot go by the button name ...
    Just check the surrounding fields and try to zero in to a button.
    You can also download the page and CO and check where the button is more clearly.
    To download the page, usr JDR_UTILS package in an anonymous block.
    The CO class file can be downloaded from Unix box and decompiled using a Decompiler.
    Regards
    Srikanth K

  • How can I add more than one submit button in a jsp without use of javascrip

    I want to add more than one submit button in a jsp without use of javascript

    you can do add multiple submit button with this way
    <input type="submit" value="Previous" />
    <input type="submit" value="Next" />
    <input type="submit" value="Finish" />

  • Help with buttons on a JSP Page

    Hi All,
    I have a HTML page , that has certain text fields.... on entering values into the text fields, it is directed to a servlet.
    The servlet(puts the values into the database) then directs to a jsp with the values entered in the form.
    I would like to know whether on the jsp page i can have 2 buttons like "edit" and "OK".
    (how do I code it???)
    The "edit" button edits the information on the initial HTML page and
    The "OK" button just confirms the inputted information.
    I hope I have asked a clear question.It would be great if someone directs me in the right direction.
    Thanking everyone in advance
    AS

    I hope I've understood your question correctly. Let
    me see if I got it right. So the first page is the
    form, where the user inputs the information, the
    second page will display this information that they
    inputted from the previous page and then have two
    buttons, one that says edit and the other that says
    ok. Upon hitting edit they're sent back to the form
    with the values already filled out, if they hit OK,
    the data is inserted into the database. If this is
    correct, this is how I would do it.
    You will have 3 files
    parameters.jsp
    <%
    String firstname =
    = request.getParameter("firstname");
         String lastname = request.getParameter("lastname");
    %>form.jsp
    <%@ include file="parameters.jsp">
    <html>
         <body>
              <form action="confirmation.jsp" method="post">
    <input type="text" name="firstname" value="<%=
    <%= firstname %>">
    <input type="text" name="lastname" value="<%=
    <%= lastname %>">
                   <input type="submit">
              </form>
         </body>
    </html>confirmation.jsp
    <%@ include file="parameters.jsp">
    <html>
         <body>
    <!-- the action of this form will be the page that
    at inserts the data into the database -->
              <form action="insertintodb.jsp" method="post">
    <input type="text" name="firstname" value="<%=
    <%= firstname %>">
    <input type="text" name="lastname" value="<%=
    <%= lastname %>">
                   <input type="submit" value="OK">
              </form>
              <form action="form.jsp" method="post">
    <input type="hidden" name="firstname" value="<%=
    <%= firstname %>">
    <input type="hidden" name="lastname" value="<%=
    <%= lastname %>">
                   <input type="submit" value="Edit">
              </form>
         </body>
    </html>
    Hi,
    Thanks a lot for the information.I will try to do as you have suggested.Will post when i go into problems...
    Many thanks
    AS

  • Two buttons in same jsp page

    hello to java people
    My ? is, jsp page named as login.jsp, In this page i want to use two buttons.
    If i click on one buton it will goto sucess.jsp and for another button it will go to find.jsp.
    i.e, two actions in same page, is it possible ?
    help me by giving sample code.
    thanks

    thanks balu for ur answer.
    pure java ?
    But my doubt is see we take one form
    <form action="sucess.jsp">
    <input text...>
    <input text...>
    <input type=submit name=sucess>
    <input type=submit name=find>
    </form>
    means whether i take two buttons as submit and names r diff..
    but at top only one action is there .
    how can they know to which page it has to go?
    do u understand my ?
    can u please give some sample code so that i can understand
    thanks

  • Help posting correct Array[value] to JSP page

    Hello,
    Can someone please tell me what is wrong with this? I am posting the following page (only a portion of the page is listed below) to another jsp page. It consists of a listing of books for sale. Next to each book is a separate "add to cart" button. I want to send the corresponding "isbn" (indexed in an Array) to the next page. When I add print stmts for each record, I can see that the correct isbn is attached to each book.
    The problem is that when I post this to the next page, the formparm for isbn is always the 1st isbn in the array, instead of the selecgtedIsbn. Why???
    Thanks in advance!
    <CODE>
    <% for(int i=0; i < isbnValues.length; i++) {  %> 
    <TABLE>
    <% if ( isbnValues[i] != null) { %>   
    <tr>
    <td> <B><%= titleValues[i] %> </B> </td>     
    <INPUT TYPE="HIDDEN" NAME="selectedIsbn" VALUE="<%= isbnValues[i] %> "></INPUT>
    <INPUT TYPE="HIDDEN" NAME="selectedPrice" VALUE="<%= priceValues[i] %> "></INPUT>
    <td align="right"> <i>Price: </i>
         <%      DecimalFormat df = new DecimalFormat("$#,##0.00");
              String strPrice = df.format(Double.parseDouble(priceValues));
         %>
              <%= strPrice %>     <br>
    </td>
    <td align="right"><i>Quantity:</i>      
         <INPUT TYPE="TEXT" NAME="qty" VALUE="1"></INPUT> <br> </td>
    <td align="right">
         <INPUT TYPE="SUBMIT" VALUE="Add to Shopping Cart"></INPUT> <br>
    </td>
    </tr>
    <% } %>     <%-- end if isbn --%>     
    </TABLE>
    <% } %> <%-- end for loop --%>     
    </CODE>

    Hi,
    I have the indexes, but they were somehow removed when I posted the code. I used the wrong tags.
    I used the right tag and added spaces around the [" i "].
    Let's try again... Here's the code:
    <% for(int i=0; i < isbnValues.length; i++) {  %> 
    <TABLE>    
    <% if ( isbnValues[ i ] != null) { %>   
    <tr>
    <td>  <B><%= titleValues[ i ]  %> </B> </td>     
    <INPUT TYPE="HIDDEN" NAME="selectedIsbn" VALUE="<%= isbnValues[ i ] %> "></INPUT>
    <INPUT TYPE="HIDDEN" NAME="selectedPrice" VALUE="<%= priceValues[ i ] %> "></INPUT>
    <td align="right">  <i>Price: </i>
         <%      DecimalFormat df = new DecimalFormat("$#,##0.00");
              String strPrice = df.format(Double.parseDouble(priceValues[ i ]));
         %>  
              <%= strPrice %>     <br>
    </td>
    <td align="right"><i>Quantity:</i>                 
         <INPUT TYPE="TEXT" NAME="qty" VALUE="1"></INPUT>   <br> </td> 
    <td align="right">
         <INPUT TYPE="SUBMIT" VALUE="Add to Shopping Cart"></INPUT> <br>
    </td>
    </tr>
    <% } %>     <%-- end if isbn  --%>     
    </TABLE>
    <% } %>      <%-- end for loop  --%>     

  • Php sql image editor - help with submit buttons!

    Hi,
    I have recently setup a website for my real-estate company, with a makeshift CMS behind it for my staff to use when updating properties.
    I have a slideshow on my site for each property, which is populated through sql blobs (I know alot of people dont think this is the best method but I have managed to get it working so I am happy with it!).
    Assuming the database has 4 fields - id, image1, image2, and image3 - I have managed to build separate pages to edit image1, image2 or image3 based on the id as per:
    <?php
    $db_host = 'xx'; 
    $db_user = 'xx';
    $db_pwd = 'xx';
    $database = 'xx';
    $id=$_GET['id'];
    ?>
    <?php
    if (!mysql_connect($db_host, $db_user, $db_pwd))
        die("Can't connect to database");
    if (!mysql_select_db($database))
        die("Can't select database");  
    function sql_safe($s)
        if (get_magic_quotes_gpc())
            $s = stripslashes($s);
        return mysql_real_escape_string($s);
    if ($_SERVER['REQUEST_METHOD'] == 'POST')
              if (!isset($msg))
                    $data = file_get_contents($_FILES['photo']['tmp_name']);
                    $data = mysql_real_escape_string($data);
                    mysql_query("UPDATE slideshow SET image1='$data' WHERE id='$id'");
                    $msg = 'Success: image uploaded';
            ?>
    <html><head>
    <title>Slideshow Images</title>
    <meta http-equiv="content-type" content="text/plain; charset=utf-8" />
    </head>
    <body>
    <table width="974" border="1">
        <tr>
          <td width="158"><img src="ss/show_slideshow1.php?id=<?php echo $id ?>" alt="Image1"></td>
          <td><?php
    if (isset($msg))
    ?><?=$msg?><?php
    ?>
    </td>
    <td width="664"><form action="<?=$PHP_SELF?>" method="POST" enctype="multipart/form-data">
    <input type="file" name="photo" id="photo">
    <input type="submit" value="upload">
    </form></td></tr></table>
    The above code will display image1, and let me edit it using a simple submit button.
    What I am trying to do though, it to get all the images for the property where id ='$id' on one page with respective edit buttons. I can display them all on the same page easily, but cannot seem to crack the UPDATE form for each image.
    Appreciate any advice or help in solving this!!
    Thanks
    Jack

    Your code has been been copied to the end of the style rules.. not the rest of the html.
    It would actually be better if you could provide a link to the live site, it's always much better for troubleshooting purposes to see the live page.
    Can you do that?

  • Remembering the radio button state between jsp pages

    How do i maintain the state of radio buttons when i move from one jsp page to another. Thank you for your help.

    Hi
    If the next JSP is a child window,you can take a JSP hidden variable and you can store radio button state in it and can get the same on child window thorugh window.opener.
    And if its not a child window(JSP),then you can maintain the state in session and get it anywhere.

  • Multiple submit buttons in a jsp form?

    I've been doing some research and found out that multiple buttons in a JSP form are possible by two ways:
    - We can obtain the value of the submit button to know which one was clicked in the parameters of the request using the name of the buttons (which should be the same for all the submit buttons).
    - We can change the submit destination using Javascript (Horrible solution since I want my web site to be safe to be used even if Javascript isn't active in clients browsers. I will use it of course since we can do amazing things with it but I want my website to be able to work without it also)
    WHAT annoys me is the fact that the value of a submit button is also his text, so if I change the text of the submit button, I will always have to check the servlet to do the corresponding change.
    Is there a third choice to be able to use multiple buttons?
    Olivier Voutat

    It seem rather convoluted at first but it's really good. I've not worked with JSF so I've no idea how that compares but from what I know, Craig McClanahan, who came up with Struts, worked on JSF also, so I guess it could only improve on Struts.
    EDIT: Here's a search result on Google'ing his name: http://www.theserverside.com/news/thread.tss?thread_id=29068
    But like I said, you don't have to use Struts ( which only uses standard JSP/ Servlets stuff anyway ), you simply use one of the ideas from it.
    For example; you have a properties file, say "/WEB-INF/properties/myProps.properties" with these entries:
    #USERS MODULE
    users.button.save=Save User
    users.button.search=Search User By Name
    users.button.delete=Delete UserThis would be a key: users.button.save to the value Save User
    Now, in your JSP, you use JSTL <fmt> tags:
    <fmt:setBundle basename="properties.myProps"/>
    //set the resource bundle you want to use
    //and create buttons with the proper values
    <input name="myButton" type="submit"><fmt:message key="users.button.save"/></input>
    <input name="myButton" type="submit"><fmt:message key="users.button.search"/></input>This would create buttons with text "Save User" and "Search User By Name" respectively
    Now, finally, in your servlet:
    //create a map of the properties,
    //possibly on app startup using a ServletContextListener
    //and put it in the servlet context for access everywhere
    HashMap myProps = (HashMap)getServletContext.getAttribute("myPropertiesMap");
    String buttonClicked = request.getParameter("myButton");
    if ( buttonClicked.equals((String)myProps.get("users.button.save")) )
    //perform save action
    else if ( buttonClicked.equals((String)myProps.get("users.button.search")) )
    //perform search action
    //etcYou'll obviously want to optimize this. Perhaps make a method that handles the comparison so you can have neater if conditions. But you get the idea, right?
    Edited by: nogoodatcoding on Oct 4, 2007 8:12 PM

  • Need help with Submit button

    I'm needing a script that locks all of the fields once the submit button is pressed and it's emailed to someone else. Is that possible? Thanks in advance for your help.

    Right now I'm using javascript to submit the form. I'm using
         this.mailDoc({
         bUI: true,
         cTo: [email protected],
         cSubject: ""
    So I need to incorporate the script you gave me with this script that I'm already using?

  • Help with submit button remove null value

    Hello,
      First of all I dont know much about java, but I wanted to create a submit button and I did alot of research.  I want a button that will email some pdf files I have created in LiveCycle.  So far everyting works but my code needs help.
    There are a few fields I want to be place in the body of the e-mail, but if left blank I dont want null to apear on the email subject or body.
    Here is what I have so far *this is a work around I like to konw the proper code.
    var 
    strToAddress, strCCAddress, strSubject, strMessagestrToAddress
    = myemail@atwork;strCCAddress
    = myemail@atwork;
    strSubject
    = "Account "+DropDownList1.rawValue+" For: " +last.rawValue +", " +first.rawValue +" " +mi.rawValue;
    if 
    (mi.rawValue ==null || mi.rawValue =="")strSubject = "Account "+DropDownList1.rawValue+" For: " +last.rawValue +", " +first.rawValue;
    strMessage
    = "Please " +DropDownList1.rawValue +" account for " +"\n"+first.rawValue +" " +mi.rawValue +". " +last.rawValue +"\n\n*All provisions in  have been met" +"\n\n Comments: " +com.rawValue;
    if 
    (mi.rawValue ==null || mi.rawValue =="")strMessage = "Please " +DropDownList1.rawValue +" account for " +"\n"+first.rawValue +" " +last.rawValue +"\n\n*All provisions in have been met" +"\n\n Comments: " +com.rawValue;
    event.target.submitForm({cURL
    :"mailto:"+ strToAddress + "?cc=" + strCCAddress + "&subject=" + strSubject + "&body=" + strMessage,cSubmitAs:"PDF",cCharset:"utf-8"});
    //this.resolveNode("#event").submit.target = "mailto:"+ strToAddress + "?cc=" + strCCAddress + "&subject=" + strSubject + "&body=" + strMessage;
    The 4 fields am working on are First name, last name, Mi and comments.  First and last are alwasy used, but if MI is not I dont want Null in there, with what I have above it works but its messy.  I wanted to do the same with Comments if its left blank I like for it to read "Comments: None" not null
    on the If statement I just re did the whole deal with out the  mi.rawvalue but i now that is not right way... any help would be great.
    Thanks

    I believe that you should re-post this in either the Forms or the Designer forum.  You are more likely to get the right folks to look at it there.
    Generally this forum is for building custom Document Service Component (DSC) plugins that extend the LiveCycle ES server side product.

  • Help with submit button, signatures and locking fields

    https://acrobat.com/#d=sCcToPsLqquP0uePmVL1pQhttp://https://acrobat.com/#d=ZsRL5CeME*4iV3VHnvUFXw
    Well here's a doozy for ya. I have no idea what I'm doing as you will be able to see when you look at my form.
    What I want to happen is to have the user fill out the form, choose the operations manager and select submit button associated with the drop down box. All other dropdown boxes and submit buttons should be hidden. I need the form to lock so there are no edits except the signature field, the next dropdown box and submit button. I'd like to customize the email with a specific subject line and specify the email address based on the person selected from the drop down box. I'd like this to repeat itself until there are no more signature fields left. It is very important that this document follow the order specified.
    I tried to use an example Niall put out there to use regular buttons as submit buttons with script. I changed a couple things and it worked to submit the form based on the person selected but I still do not know how to lock the fields. Long story short, I broke what did work and don't know how to do what I really want to do or fix what had once worked. I don't understand javascript so please, if you're willing to help teach me, be patient and spell it out like i'm speaking a foreign language.
    Oh boy, even I don't want to do this. What a mess!

    I believe that you should re-post this in either the Forms or the Designer forum.  You are more likely to get the right folks to look at it there.
    Generally this forum is for building custom Document Service Component (DSC) plugins that extend the LiveCycle ES server side product.

  • Help needed..Unable to acess JSP page..

              Hai!
              I started Admin Server and Managed Server. When i tried to acess jsp page that
              is deployed in the default webapplication of Managed server , In the log file
              of Managed Server It is adding AdminServer to the Client list and application
              hangs(Nothing will be displayed in browser..Neither error message nor Desired
              page ). I am wondering why this is happening as Admin server is neither participating
              in a cluster nor is the Target for default webapplication of Managed server .
              Any help?
              TIA
              Rgds
              Manohar
              

    First check whether a simple jsp file with just "Hello World" is running or not.
    If it is running than my guess is that the library you are importing in JSP is not getting imported.
    This could be because your library is not in your classpath when you are deploying the application, check that in you ear file, WEB-INF/lib folder for this.
    Basically you will try several things out to get to source of error.
    all the best.

  • How to open a Filechooser on a button click from jsp page

    can anyone tell me how to open a Filechooser on a button click from a jsp page.
    Thanks

    <input type="file" name="myfile">

Maybe you are looking for

  • Layer Comp to Files in CC 2014 is SLLLLOOOOOWWWWW

    I updated to CC 2014 from CC when it first was announced but today was the first time I have had to export out my site design via the Layer Comps to File Script that I have loved to use for years. It has saved me so much time when I am working on sit

  • STORAGE ISSUE

    It seems like EVERYTIME I try to add a video to my 30G video ipod, something goes wrong... According to the memory bar on itunes I have over 20G left on my ipod, but when I try to update it i get a prompt that says I don't have enough memory.....? PL

  • Find Person-ID with the same Name

    Dear all, we are looking for an SAP Report to find out, which Person-ID has the same Name and Birthdate. We Transfer Persons from many Systems and cross Country. So it is possible that an employee has more than one Person-ID. Now we are looking for a

  • Change the cost center in asset master AS02

    Dear Members, I need to change the cc of an asset in the asset master, so I read the other discussions and followed the steps AS02 and time dependent, then create new interval. But the CC is locked it cant be modified. The validity of the CC is start

  • Copied text in AI, issues when trying it pasted elsewhere...

    Using AI CS6, this has happened just too many times, lately: I create a new file, a business card, I copy the person's last name, I save the file, wanting to use that last name as the file's name - it won't paste, the insertion point keeps blinking,