File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Uploading Files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Uploading Files" Watch "Uploading Files" New topic

Uploading Files

Hus En

Joined: Feb 28, 2013
Posts: 4
Please suggest me a method for uploading files like docx, xls, pdf.
what is the best to chose? to upload a file to a database or to upload a file to the server? im using jsp/servlet and im stucked between the file uploading part in my project. Since im very new to jsp please help me to be on right track.
Thanks :)
K. Gil
Ranch Hand

Joined: Apr 29, 2011
Posts: 75

The fileupload Example Application

How do I upload a file to a servlet?

Uploading file using JSP

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63874

Do not use a JSP for this. Using a JSP with Java code is an outdated and obsolete practice from 12 years ago.

It's like trying to build a smart phone using vacuum tubes.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Uploading Files
jQuery in Action, 3rd edition