Several entries at once

Good day,
I 'm looking for a way to collect a form post that allows you to submit multiple entries for the same SQL table.
Ex:
<form action="dosql" method="post">
     <input type="text" name="first_name">
     <br>
     <input type="text" name="last_name">
     <P>
     <input type="text" name="first_name">
     <br>
     <input type="text" name="last_name">
     <P>
     <input type="submit">
</form>
What i need after the form is submitted is to collect in the proper order, and to have the proper first and last names paired correctly.
Everything after I can do. just have some trouble with this.
Can someone point me to some resources where it explains a method for doing this.
thanks

I would do <%int dynamicValue=some determined value;
for (int i=0; i<dynamicValue; i++) { %>
  <input type="text" name="first_name<%=i%>">
  <input type="text" name="last_name<%=i%>">
<%}%>
<input type="hidden" name="dynamicValue" value="<%=dynamicValue%>">
<input type="submit">Then in your java handler you can doint dynamicValue=Integer.parseInt(request.getParameter("dynamicValue"));
String[] fullNames=new String[dynamicValue];
for (int i=0; i<dynamicValue; i++)
  fullNames[i] = request.getParameter("first_name"+i) + request.getParameter("last_name"+i);I have used this in production, but cannot say it is the best. I know with JSTL, there is a better method of doing the for loop with jsp, but our server does not support it.

Similar Messages

  • I think Barry Hemphill said he could SELECTIVELY delete SEVERAL iPad browser history entries at once. I can,t find his email. Someone plz tell me how or fwd this to Barry. Thnx

    I think Barry Hemphill said he could SELECTIVELY delete SEVERAL iPad browser history entries at once. I can,t find his email. Someone plz tell me how or fwd this to Barry. Thnx

    Hello milkisoo,
    Wow! Purchasing a new computer and monitor should be a fun and exciting experience, and instead, it sounds like it’s turned into a complete nightmare. I can only imagine your disappointment when you found two charges relating to its purchase on your debit card account, and I’m sorry for any aggravation this caused. 
    As I want to provide you some piece of mind, I pulled up your order number using your email address attached to the forum. After review of its payment information, I found we collected only one payment.  However, when orders are first placed on BestBuy.com, a pending authorization should show up on your bank card to make sure funds are available for the order until it is fulfilled. From there, the authorization should drop off and the collection charge should appear.  This is the case for your one charge of $1,051.69.
    It also sounds like an error may have occurred when you initially attempted to place your order,  resulting in one of your gift cards not registering properly and the order not being completed.  Your card’s issuing bank doesn’t appear to have recognized this and pushed through the pending authorization. This occurred a second time when your account information didn’t quite match up with what we had on file. Please know that we haven’t ordered a collection of these funds and your issuing bank should release the two pending authorizations within 5 to 7 business days.
    Thank you for posting.
    Alex|Social Media Specialist | Best Buy® Corporate
     Private Message

  • Is there a way to import several tracks at once from my Boss BR8 so that they show up as separate tracks in GarageBand?

    Is there a way to import several tracks at once from my Boss BR8 so that they show up as separate tracks in GarageBand?

    I had to google your device - looks like it's a vintage multi-track recorder that records to Zip disks. So I guess there's no digital USB or Firewire multichannel output and no way to transfer your tracks digitally - or is there? If not, your only option is to record the device's audio track by track into GB.

  • Changing multipel Adress Book entries at once?

    Heya everybody.
    Does anyone know any way to change like a 100 Adress Book entries at once?
    I have a bunch of contacts that work at the same company. And say for example that the company changed name from Banana Computers to Banana Hardware and I just want to change that one thing for all my contacts?
    I have seen a similar option in almost every other Mac OS X applications, iPhoto, iTunes etc. But I can't seem to find it in Adress Book.
    Even if it's not in there, I think there should be some Automator work action for it. But it seems that the Automator actions for Adress Book are totally useless. And I've searched for new ones.
    Please help this is killing me.

    You nee to use Applescript. Try this one.
    AK
    click here to open this script in your editor<pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">tell application "Address Book"
    repeat with ThisOne in people
    if organization of ThisOne = "Banana Computers" then
    set organization of ThisOne to "Banana Hardware"
    end if
    end repeat
    end tell</pre>
    (The recent upgrade to the discussions has disabled the link that allows direct opening of a script, so run Script Editor and copy in the script.)

  • Several photos at once

    A simple question for those of you who do these: 1) How do I display several images at once on the screen -- minimize each piece so they can all fit on the screen? 2) I'm putting together a series and need the colors of one image to match the same color on the other images (which is why I want to line them up in #1). To do this, I've tried using the eyedropper to sample, then drop the color into the other images: I've also tried reading the numeric number for a color, then copy the same color on another image. I'm not having much luck, though it could be due to my ineptness. (Note: The images are already made. Right now I'm just trying to tweak the colors so they match.) Any ideas on either 1 or 2? Thanks.

    Hi There,
    1. Window > Arrange > Tile, You can also match the zoom across open Window Arrange > Match Zoom
    2. A couple of options I'm going to suggest, depends on the result you are after
    a. You could make images Monotone?
    First make the images Grayscale, Image > Mode > Grayscale
    Then Duotone Image > Mode > Duotone
    Just use one ink for Montone, you can then change back to CMYK/RGB to avoid having spot colours
    b. Image > Adjustments > Match color... Here you can choose the target file that you are trying to match. A much more subtle match of tones and colors.
    Paul

  • Printing several documents at once

    Hello,
    We are looking for a possibility to print out several originals at once (mass print). The originals might belong to several DIRs. I know that there are external solutions available (e.g. from SEAL Systems). But my question is wheather there are SAP solutions available for this requirement. I can think of printing from CV04N result list, printing from EasyDMS (printing complete EasyDMS folder), printing from CAD-Desktop (CDESK) or from Web Documents. But in SAP Standard (ECC 6.0) you can alway just print one original at a time. I really appreciate any information!
    Thank you!
    Best regards
    Matthias Beer
    SAP Business Applications
    Villeroy & Boch

    (haven't done this myself, but someone else here says it works...)
    Create a desktop printer for the HP - using Printer Setup Utility in the Printers menu.
    Drag and drop your docs on the desktop printer.
    Please let us know about your success with this.

  • Deleting several Books at once ?

    Does anyone know if it's possible to delete several books at once, not just one at a time. I tried highlighting several and clicking "Delete" ....doesn't work.

    thanks TD...so i have another question...do you know why sometimes if i click on a picture at the end of a row, the whole row gets highlighted and other times only the one picture gets highlighted....and then sometimes, some of the pictures i click on get unhighlighted and i have to start over...it seems to have a mind of its own, but i am sure there is some logical explanation?
    cheers

  • Delete several episodes at once

    Ugh! How do I delete several episodes at once with this new stoopid guide? Hey verizon: KISS (keep it simple stupid)....

    C-fifi-go wrote:
    Ugh! How do I delete several episodes at once with this new stoopid guide? Hey verizon: KISS (keep it simple stupid)....
    With the show folder higlighted, press the options button.  It will give you the option to play, delete, etc.

  • Drag multiple photos to create many blog entries at once?

    I wanted to make many blog entries at once from some photos. This is trying to catch up with many entries at once, and make basically photo pages with one photo and more than just a caption (like you get with a photo page).
    I did this by the usual method when I first tried iweb (try something, it works...). Then I noticed that it just assigned today's date to all the entries. I didn't want that, so I deleted all of them. Then I found out you could edit the dates...
    Now, I want to recreate all those entries again, and I can't for the life of me repeat that initial 'try it, it works' of just making many blog entries all at the same time. I can't remember if it was a drag in, or what...
    help!
    Doesn't help that iweb goes to SBOD when I first open the media browser for 10 min...

    Peter...
    I have not tried this myself, so I'm not sure if this is what you did....but try this...
    In iPhoto, select all the photos (Apple-click to select multiple photos) that you want to send to your blog pages. Then do you see the iWeb icon at the bottom of the iPhoto window there??? Click on it and select "publish to photoblog". See if this is what you were looking for...

  • How do I replace a component in several BOMs at once?

    I need to replace an item that appears in several BOMs. Rather than go into each BOM separately and remove the old component and then go back in and add the replacement component, is there a way to find and replace several (all) at once?

    You have fist to create a Change type :
    Bill of materials > Setup > Change types
    Open the BOM Mass update form, enter the Change type , enter the selection criteria for the Assemblies.
    In the Changes window, select the Change type 'Update'. On the first line (Update), enter the Component to change. On the second line (New), enter the new component.If necessary, enter component information.
    On the main screen, select Report and submit : will display all the changes that will be performed.
    Select Implement and submit : will apply the changes.

  • Hi tried to update several apps at once no they are stuck on installing.i can't delete them or open them.any suggestions?

    Hi tried to update several apps at once and now they are stuck on installing.I can't open or delete them. Any suggestions ?

    Here are a number of things that have worked in the past that you can try. If you already tried something in here, just ignore it.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.
    Make sure that you do not have a stalled download in iTunes - a song or podcast .... if you have a download in there that did not finish, complete that one first. Only one thing can download at a time on the iPad so that could be what is causing the problem.
    If that doesn't work - sign out of your account, restart the iPad and then sign in again.
    Settings>iTunes & App Store>Apple ID. Tap your ID and sign out. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    Go back to Settings>iTunes & App Store>Sign in and then try to update again. Tap one waiting icon only if necessary to start the download stream.
    You can also try deleting the waiting icons - tap and hold down on an icon until it wiggles - the tap the X on the icon to delete it. Then try to download again.
    You can try resetting all settings. Settings>General>Reset>Reset All Settings. You will have to enter all of your app preferences and device settings again.
    If all else fails, download the updates or the apps in iTunes on your computer and then sync the content to your iPad.

  • Cannot make several changes at once

    Hi,
    I have Contribute installed onto a computer and i am able to connect to the server via FTP.
    When I edit 1 thing on the website and go to draft and publish it will upload the change i have made and it is visible on the website, but when i make several changes at once then go to draft and publish then it says it cannot access the FTP server.
    Does anyone know how to fix this? or hae had similar issues?
    cheers,
    Phil.

    did not work. it's doing the same thing. the password does not contain any invalid keys
    live chat does not support the BEFW11S4 version2. they told me to call 800-326-7114 for help
    and the wireless functionality is working. i can connect to my network with my laptop. I just can't change anything on the configuration page (192.168.1.1) because it never recognizes my password except to login to the page.
    Message Edited by lefty on 09-08-2007 11:54 AM

  • PLD - print several documents at once

    Hi.
    Can anyone tell me if it's possible to print several documents at once in SAP B1 2007A.
    When creating sales order, I would like to print both order confirmation and a second document used as pick list.
    Thanks and regards, Runar.

    I do not believe that it is possible to print two different layouts at once except for special cases such as printing batch information along with a marketing document. You will see these special cases in Print Preferences.
    The usual techniques for printing two documents from one layout are:
    1. Repeat the repetitive area etc.
    OR
    2. Specify two copies of the layout.
    In both cases, you would use formula fields that would react to which print you were producing. For example, printing a different page heading on copy 1 and copy 2.
    Regards,
    Douglas

  • Mark several images at once with one or more stars

    howdy,
    using aperture 3 and am mostly happy with it (except a nasty import bug). however, a question about marking images with * to *** stars:
    if I select several images at once within the aperture browser, is there a way to mark those images with a * star rating alltogether?
    maybe I am to dumb, but if I select a couple of images, this is not possible. I have to move to every image with the cursor key, mark it with * star and then to the next.
    did I oversee something?
    thx

    There are many reasons that "Primary only" is an option. Often you want to have multiple photos selected, but apply changes to only one of them.
    A read of the documentation or a good tutorial book would elicit some helpful workflow advice for Aperture, if you'd care to invest the time

  • Can i make a group email list so i can email several people at once

    how can i make a group email list so i can email several people at once instead of one at a time from my iphone 4

    Here is a link to our MailShot Pro app, which leftyapple2 was kind enough to mention (Thanks). MailShot Pro in App Store
    MailShot creates a special contact for your group that enables most of the apps on your device to send group email, including the Mail app itself. Just add the contact to the "To" or "Bcc" line of your email using the blue + button
    Any questions or problems, please get in touch with our support email on "support at solubleapps.com", we are always happy to help.
    Peter
    SolubleApps
    Disclosure: we are the developers of MailShot Pro and may benefit from its sale.

Maybe you are looking for