0

I made a homepage using JSP. This page show server computer's file. I want to make this file can be downloaded via link. What can I do for this feature? Is there any way to link file to homepage? I'm using apache tomcat.

백종빈
  • 143
  • 1
  • 11

1 Answers1

0

First thing you need to call the Servlet on clicking on hyperlink. This post will describe how to call the Servlet if your not using javascript.

calling the servlet on click of hyperlink.

In the Servlet you have to write code for the downloding file. I think this post will help you.

how to download / upload files from / to server

Arvind Katte
  • 995
  • 2
  • 10
  • 20