Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to upload file from JSP page

 
maateen ashraf
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want to upload a file from jsp to server (servlet)
how can i do it..
what i have done is
created an object of FILE
then FILEOUTPUTSTREAM to pass it to next page...?
but i cant get it on next page...?
what could be the scnario..?
thanks in advance.
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
two things for you:
http://onjava.com/lpt/a/745 <- this is an article about writing your own file upload bean.
http://www.servlets.com/cos/index.html <- this is a pre-written package that is very easy to use, and it does fileupload and multipart form processing.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic