Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

I need an upload servlet

 
Azz Romaysa
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Does someone have a servlet which I can use to upload files, images... I've always used one, but it's in jsp. I would like one as a Servlet.

Could someone help me?

Thanks,
Abu Romaysa
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64827
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you have it working in a JSP it should be a fairly straight-forward matter to factor the code out of the JSP and into a servlet. What aspect has you stumped?
 
Elihu Smails
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
check out the jakarta commons project.

http://jakarta.apache.org/commons/fileupload/
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic