Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Want a suggestion regarding upload and save in database using struts 2.0

 
vijay jamadade
Ranch Hand
Posts: 243
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,

I want to upload multiple .cvs file in database can I do that on single browse button?
Also I want another browse button on the same page for pdf upload which will read the pdf file
and save that file in the database.

Please give me suggestions how it can be done in the struts 2.0?
please help me out.
 
Nishan Patel
Ranch Hand
Posts: 689
Eclipse IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

You make two separate form for upload file.

User one browse button and give one submit button upload file. Store this file content to session.

Again repeat same as your pdf file.

And finally submit button save all your file.

 
vijay jamadade
Ranch Hand
Posts: 243
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Thanks for suggestion.

I implemented that thing, now my requirement is one browse button should be able to select all pdf files in the folder and send that files to the action class in one browse. Right now my browse button for file selection allows me only to select the single file at a time for upload. I want it to be able to select the multiple files.

My question is can we do that? and if yes then how?

Please i need this solution because client requirement does not allow me to add multiple browse for file upload.

Thanks
 
Nishan Patel
Ranch Hand
Posts: 689
Eclipse IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi,

No, I think it is not possible.


You can upload multiple file but select only one file at a time from browse button.


 
vijay jamadade
Ranch Hand
Posts: 243
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anybody suggest some alternate solution for this just like the url below

bulkupload url

can we have this as a solution
 
vijay jamadade
Ranch Hand
Posts: 243
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

hey Ranchers,

Please think about this scenario. Tell me your views for this.
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One suggestion would be to write a signed Java Applet to browse the client system and upload multiple files to the server.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic