How to upload more than one file in struts?

thanks first. I want to upload more than one file at once. So I modify the the example of the struts 1.1. I changed :
protected FormFile theFile;
to
protected FormFile [] theFile;
and add indexed getter and setter method.
public FormFile getTheFileIndexed(int index){
return theFile[index];
public void setTehFileIndexed(FormFile theFile,int index){
this.theFile[index]=theFile;
and in the upload.jsp, I changed
<html:file property="theFile" />
to
<html:file property="theFile[0]" />
and also in the ActionForm
reset(){
this.theFile=new FormFile[2];
But when I run it, it tells me there are no getter indexed method.
Thanks again for reading.

Create a FormFile property with getters and setters for each file you want to upload. Eg.
private FormFile file1;
private FormFile file2;
public void setFile1(FormFile file) {
   this.file1 = file;
public void getFile1() {
  return file1;
// same for file2And in your jsp use the following :
<html:file property="file1" />
<html:file property="file2" />

Similar Messages

  • How to upload more than one file at a time to convert

    I have 1300 tiff files that need to be converted to pdf. Is this possible?? I tried to call for help and set on hold for nearly 1 hour. If this isnt possible then I need to cancel my subscription for it won't be of any help to me

    Hi Derek, 
    It sounds like you were looking to back convert TO the PDF format.  To do this, you'll want to look at our desktop application, Adobe Acrobat.
    As you requested, I have initiated a return of your CreatePDF subscription.
    -David
    [moving thread to CreatePDF forum]

  • How to transfer more than one files over internet at once?

    hi, friends,
    I just wonder how to transfer more than one files from one computer to another over internet at once. Not using ftp. pls any one give me the solution.

    This isn't hard to do, but it depends on your exact need. I did something very similar to let me upload all my mp3 file from home to work using sockets (don't have the code anymore..).
    What I did was implement a "pull" approach rather than a "push" approach. In other words, everytime my server got a request from a client, it served up the next file. It didn't know or care that the client was always the same.
    If you can set up a server to serve one file when a client attaches, then basically just put that code in a loop.
    If this doesn't meet you need, it might still be helpful as a starting point...

  • Html tag to upload more than one file at a time

    hai sir this is surendra i need html tag to upload more than one file at a time .I am using
    <input type="file" name="">
    tag to upload single file at a time i need tag to upload more than one file at a time .
    Waiting for your result

    You can add more than one input element of type file.
    <input type="file" name="name1">
    <input type="file" name="name2">

  • How to burn more than one file on the same dvd?

    I would like to burn more than one file in to the same dvd. It seems to me that using Finder I can burn only a file. There is some alternative command? Thank's

    Select all the item to burn... right click...
    Or
    Place all items into a folder and burn the folder to the disc.
    Or
    Make a Burn Folder in the Finder (place items into the folder) and burn from there to a disc.

  • How to view more than one file at a time in CS4?

    With OS 10.5, and a brand new CS4 Photoshop, I can open many Photoshop files at a time, but can only view one at a time. Must choose one at a time from the "tab". I need to have more than one picture open and showing at a time to work on them. How can I do that? What have I missed? Who can help? Thanks!

    "Here's the smart way for all of you on macs. Set up Exposé and a keystroke for 'Application windows'. Then with the press of a single key you can visualize, and swap between documents very easily. By I single keystroke I mean something like Right Control.
    Tabbed documents have hardly any genuine advantages for mac users, yet another example of interface decisions in the stupid direction."
    This is what I've been saying since I first saw the tabbed view in the new CS4.  On the Mac, tabbed view is a big step backwards as it actually breaks the superior Expose' method of viewing multiple windows and also switching among them.  I would also add that Control/Tab for non-tabbed windows is actually slightly faster than when they are tabbed.  So for the mac, I only needed a minute to decide that the tabbed view was merely change for the sake of change.  There are also operations that I do where I have to recreate a piece of art to match an existing piece.  In those situations I always have the original right next to the the new image.  Tabbed view destroys this as well.  So I don't use it.
    For the PC, tabbed views is possibly a tiny step forward, but it's such a small step that I'm not sure if I prefer to use tabs, or have that small amount of screen space that the tabs use.  There was no previously existing "good" method of viewing and moving among multiple windows of a single application on the PC and therefore, tabs might be a small improvement.  Unfortunately though it does seem that in order to bring us tabbed views in CS4, Adobe had to slightly 'break' the regular floating windows view.  On the PC the documents will actually float above the toolbars, palettes,etc making it very difficult to use if not impossible.  So, if you don't like using tabs, then you are really gonna suffer with non-tabbed view or suffer with the tabbed view.  On the Mac, it's the opposite problem.  Documents actually float up and underneath the top toolbar, covering the "close, maximize, minimize" buttons.  Generally I would say that Adobe has created a mess when the best solution was obvious.  Adobe should have copied the expose' method for it's CS4 suite.  Hopefully they will have enough feedback with CS4 to see the light and change it for CS5.  I see that Microsoft has mouse software that has already done just that on the PC, and there are a handful of independent efforts attempting to come up with something like expose' but generally with far less elegant and less "perfect" results.

  • Upload more than one files at the same time

    Hi people!
    I'm having serious problems with struts. I have a list of contacts in which I can upload a file per person. The problem is that I have an unique form and I want to upload all the html:file at the same time. Is there any way of doing that? The problem is that I can't retrieve the values in the actionForm as FormFile[ ] as the other fields.
    I need help urgently!!

    I'm not sure uploading several files at once is possible. I have yet to see anything like that.

  • How to transfer more than 1 file usong bluetooth t...

    Can anyone tell me how to transfer more than one file via Bluetooth. I am using Lumia 720.

    Hi,
    My theory is that Windows get confused when it is opening the program file and the following intsructions should create a unique copy. I have produced the instructions in detail because I am never sure how much people are use to - forgive me you know much of it.
    Open Windows or Folder Explorer
    Navigate to C:\Program Files (x86)\Adobe\Photoshop Elements 12
    Look for PhotoshopElementsEditor.exe
    Right click on the file and select Copy
    Right click on a blank space and select Paste - you should get a prompt asking if you want to continue - you do - this should produce a copy of the file
    Rename PhotoshopElementsEditor - Copy.exe to PSE 12 ED  - you should get a prompt asking if you want to continue - you do
    Close the Explorer
    In the Windows Control Panel, select Default Programs
    In Default Programs, Select Associate a file type … - it will take a while to display the list
    Scroll down to the type you want to select - say .jpg and select it
    Click on the Change program button
    Click on the Browse button
    Search for the PSE 12 ED file renamed in 6 above, select it and then click on the Open button
    Click on OK and close the Default Programs
    Now try your tests. I can get multiple files to open as well as retain Expert mode.
    Good luck
    Brian

  • How do I share more than one file at once in Adobe Creative Cloud?

    How do I share more than one file at once in Adobe Creative Cloud?

    Hi Ken,
    Thank you for your quick response. Have a good weekend.
    With best regards,
    Hans Rengelink
    De Eelinkes 29 - 7101 PZ Winterswijk - The Netherlands - Tel: +31 543 461818 - E-mail: [email protected]
    This e-mail message and any accompanying documentation is intended for addressee only and may contain privileged and confidential information. If you are not the addressee any use of this information is strictly prohibited. If you have received this e-mail in error please notify us immediately by reply e.mail or telephone call on +31 543 461818 and delete this e-mail from your systems.
    Op 26 okt. 2012, om 17:33 heeft Ken G. Rice <[email protected]> het volgende geschreven:
    Re: How do I share more than one file at once in Adobe Creative Cloud?
    created by Ken G. Rice in Adobe Creative Cloud - View the full discussion
    Currently you cannot share a folder, only individual files. Sharing of folders is a feature that is coming in the future.
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/4802876#4802876
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4802876#4802876
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4802876#4802876. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Adobe Creative Cloud by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • How can i transfer more than one file from server to client

    Hi,
    our requirement is transfer more than one files from server to client using the
    webutil_file_transfer.as_to_client_with_progress.One file transfer is already working in our system.If anybody know the solution please inform
    regards
    mat

    just an idea ...
    for this purpose let us put aside security concerns and other potential problems....
    -- Get the content of a server directory with Filter and create zip file
    1) create a class that implements java.io.FilenameFilter ...
    2) define accept() method ...
    3) call File.list() with the filter as a parameter. The returned array of strings will have all the names that passed through the accept() filter
    4) use java.util.Zip to create ZIP file on the server side
    -- I think it is better to create this functionality as a separate Java class, put it in required folder and after it
    -- use Forms->Program->"Import Java class" to create pl/sql wrappers, than to create wrappers for all classes and code in pl/sql
    5) use webutil to transfer file on the client
    6) use Java on client side to unzip transferred file
    if you think this is not too complicated, you should try ...
    Regards,
    Vladimir

  • I have an HP Photosmart C4180 all in one printer scanner and copier, I can't figure out how to scan more than one page at a time and then send as a PDF file via email

    I have an HP Photosmart C4180 all-in-one, printer, scanner and copier.  I can't figure out how to scan more than one page?  It will only let me do one page at a time and then I have difficulty sending pages 1, 2 and 3 as one docuement.  Any ideas??
    Thank you, Jetteski

    Hello Jetteski,
    Hello Jetteski, Thanks for the post.
    Since you are running a MAC, check the below links for some excellent information on scanning.  Good Luck!
    http://goo.gl/M8Cl2
    http://goo.gl/cufK6
    http://goo.gl/OTQoR
    I work for HP but my posts and replies are my own....Thank you!

  • How to update more than one Bank data in LSMW using recording

    Hi friends,
    please let me know how can we upload more than one bank data for vendore master in LSMW, and i am Using Recording and i have to use that.
    thanks a lot.
    Regards,
    veeru.

    Hi
    I have used the direct input but, there are address fields missing in the direct input like, SORT2, MOB_NUMBER, SMTP_ADDR. these fields.
    when i see the documentation for direct input, it says for additional address you need to use another BAPI. but here the problem is we are using internal numbering for vendor, so how to link the created vendor and the address uploaded to correct vendor.
    thanks a lot,.

  • How to display more than one documents on windows 8 desktop?

    how to display more than one documents on windows 8 desktop?

    Adobe Reader Touch doesn't show more than one file on screen and doesn't show them on the desktop. Apparently these are very old fashioned things that Microsoft doesn't think we'll want to do any more and calls them "legacy" to make them sound antiquated.
    If you want to do these things use the legacy Adobe Reader, a much more powerful and flexible app (and not obsolete in the slightest). http://get.adobe.com/reader . There are no legacy apps in the Windows App Store.

  • Can we upload more than one document at a time ?

    It will take me forever to upload all my documents into the acrobat cloud , ONE at a time....is there a quicker way to do it? If not,  will there be soon? Because that would really help me and possibly others to get it done faster...

    Hi melanie1621
    Yes You can upload more than one document ...
    Please do the following :
    1. Click on upload files button under Acrobat.com
    2. A pop will open .
    3. Select more than one file by keeping the CTRL button pressed.
    4. Once, you select all the files , Click on Open ...
    It Will Start uploading all your files ...!

  • I am unable to to upload more than one photo at a time. I have tried to hold down the shift key

    I am unable to upload more than one photo.  I have tried to hold down the shift key and highlighting the remaining photos. 

    If you are using the Internet Explorer (IE) browser than you will only be able to upload one file at a time. This is per browser design by Microsoft. If you want to upload multiple files than use another browser such as Firefox or Chrome.
    If you are not using IE and are seeing this issue then please share which OS version and browser version you are using.

Maybe you are looking for