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
Author

Uploading Files

Hus En
Greenhorn

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
http://docs.oracle.com/javaee/6/tutorial/doc/glraq.html

How do I upload a file to a servlet?
http://www.avajava.com/tutorials/lessons/how-do-i-upload-a-file-to-a-servlet.html

Uploading file using JSP
http://www.java-tips.org/java-ee-tips/javaserver-pages/uploading-file-using-jsp.html

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60741
    
  65

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: http://aspose.com/file-tools
 
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