PDA

View Full Version : File upload in JSP



RobikShrestha
July 21st, 2011, 03:36 PM
Does anyone know a very easy way have a jsp upload and download files? It is easy in php but when I googled for jsp, the codes were really complex, I just want a few lines to do the things.

myrtle1908
July 22nd, 2011, 06:04 AM
For receiving files, one typically uses http://commons.apache.org/fileupload/ ... well I do at least.

For sending files - you can obviously provide a direct link or "push" the file to the user. This is a pretty nice example ... http://balusc.blogspot.com/2007/07/fileservlet.html

PaulM1985
July 22nd, 2011, 11:08 AM
for receiving files, one typically uses http://commons.apache.org/fileupload/ ... Well i do at least.

+1