Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Upload multiple files in jsp

 
Shaik Vali
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys Good Morning

I have a requirement to upload files.

upload.jsp:
-------------
<s:file name="image" accept="image/*" theme="simple" id="imageFile" value="%{imageUrl}"/>
<s:file name="icon" accept="image/*" theme="simple" id="iconFile" value="%{iconUrl}"/>

UploadAction.java:
---------------------
File image;
File icon;

and setters and getters. So based on the name I can able upload the files into different directories like icons will be icons folder , images will be into images folder.

Now the requirement is I need to upload a set of images & set of icons not sure the count.


Please help me out how to do this........

Thanks

 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Either add more <s:file> tags in the JSP or create HTML file input elements via JavaScript.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic