Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

uploading a file to a servlet  RSS feed

 
John Gregory
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a list of users I'd like to upload to a servlet to
process. I've seen the HF example of how to download a jar
file, but I've not been able to locate anything on how to
upload a file. Is it just as simple as as using file i/o?
If so, and I have my web app deployed on a remote server,
how would I do this. Not looking for a solution, but a
push/shove in the right direction...

Thanks,

John
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The server side would be handled by a library like Apache Commons FileUpload. The client side would be an HTML form (assuming that you want to perform the upload in a browser). If the client is a Java app, it can use the Apache Commons HttpClient library.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66187
148
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is a JSP FAQ entry on this subject.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!