[prev in list] [next in list] [prev in thread] [next in thread] 

List:       velocity-user
Subject:    How to hold  multiple files in single #fileupload in velocity
From:       "Veerappan Sridhar" <vsridhar () novell ! com>
Date:       2005-07-26 14:29:19
Message-ID: s2e5f45f.022 () lucius ! provo ! novell ! com
[Download RAW message or body]

Hi, 
1) pls clear my doubt.Here i have single #fileupload and file, file
holds only single value, but i want to hold multiple value in this
file.how to do that?
<tr>
        #fileUpload ("File" "file")
</tr
or 
2)i hold multiple files in in a text area, how to parse String to
getFileItem(..),since it is throwing an exception.


FileItem fileItem = params.getFileItem("file");
 fileItem.write(new
File(TurbineServlet.getRealPath("/uploaded.file")));

Thanks and Regards
Sridhar



---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic