This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 60741

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] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Uploading Files
Similar Threads
how to upload files to server using JSP ?
file uploading and downloading through JSP
how to print multiple file uploads in console
Uploading multiple files
how to upload files to My sql with jsp and what is the query to check in database