Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

file uploading  RSS feed

 
faisal usmani
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi ranchers,

I am little novice in this j2ee technologies, but have to make a file upload code for bulk uploading of .wav files. Dont even know where to start with , some of my friends say i should use servlets , some say JSP while others normal java. I tried google but even that didnt turn out of much use.

so what do you people say ? . Beside i also want to know how to do we make a code for uploading a file then only i can go for bulk upload code. A small example will be of really great help. I am using TOMCAT as web server.

Thanx in advance

-faisal
 
Paul Clapham
Sheriff
Posts: 22185
38
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't use JSPs to process file uploads. A JSP should be used to generate HTML for the user interface, not to do tasks like file uploading. Such tasks should be done in servlets. And I have used Apache Commons FileUpload with great success to do that. It worked almost the first time with the sample uploading code that comes with the package.
[ June 18, 2006: Message edited by: Paul Clapham ]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!