This week's book giveaway is in the JDBC forum.
We're giving away four copies of Make it so: Java DB Connections & Transactions and have Marcho Behler on-line!
See this thread for details.
The moose likes JSP and the fly likes File transfer using JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » JSP
Reply locked New topic

File transfer using JSP

ajithsasi kumar

Joined: Apr 06, 2008
Posts: 21
File transfer both upload and download using jsp. sir please give me the full code.
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42959
JSPs aren't suitable for file handling. Use a servlet instead.

The server side of a file upload can be handled by a library like Apache Commons FileUpload.

The easiest way to download a file is to put it on the server and link to it. Or do you mean streaming the file to the browser?
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Duplicate of:

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: File transfer using JSP
It's not a secret anymore!