File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

File Download JSP

 
Jehan Jaleel
Ranch Hand
Posts: 196
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I would like to implement a simple JSP page that just has links to files (PDFs) which users can download securely (meaning the transfer has to be secure, https?).

Can anyone please give some suggestions on how I can begin?

Thanks.
 
T Mishra
Ranch Hand
Posts: 108
Eclipse IDE Java Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, HTTPS is secure.
A quick google serach lead me to this example. perhaps it may be helpful. The certificate setup depends on the type of the server used. This example uses tomcat.
 
Jehan Jaleel
Ranch Hand
Posts: 196
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for this.

But in terms of the JSP itself and how it might look like, specifically the links to the secure files.

Thanks again.
 
T Mishra
Ranch Hand
Posts: 108
Eclipse IDE Java Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jehan,

There are two aspects to look at here - Security and the Web Application.
But in terms of the JSP itself and how it might look like, specifically the links to the secure files.

Web Application - Your JSP remains the same just like you do for HTTP (e.g <href> to point to pdf). The only difference is that now the links contains https (https://www.example.com) instead of http (http://www.example.com) So, what makes this file transfer secure ?

Security - There are many ways to secure the file transfer between the client and server. Your use case suggests that the file transfer is for public user over internet. In this case HTTPS may be used. The SSl certificates on your web application server ensures that the communication between the client - user and the server is secure.

You might have a quick look at these links to get a feel of https and ssl.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic