File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes How to add a File Hyperlink  to jsp?user can download it? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "How to add a File Hyperlink  to jsp?user can download it?" Watch "How to add a File Hyperlink  to jsp?user can download it?" New topic
Author

How to add a File Hyperlink to jsp?user can download it?

lyo Yashnoo
Ranch Hand

Joined: Sep 15, 2003
Posts: 50
Hi friends:
I am writing a mail systems.I can receive email attachment using javamail API. But I don't know how to add a hyperlink to the attachment so when user click the hyperlink the file will be download to disc.
I means that I want to add a hyperlink to the attachment,the hyperlink will get the file's path in mail server.Because the mail's attachment are stored in mail server so I don't know how to get it in my servlet.
what I can do is get a inputstream using messagePart.getInputStream();. I only can get a inputstream in servlet.How to change the inputstream to a File when user click it and download it?
Help!
Thks
Graham Thorpe
Ranch Hand

Joined: Mar 25, 2002
Posts: 265
Hi
Once message stored at Imail Server then u can search any hyperlinks there or not ..If there means u can write code and separate the hyperlinks and gifs.
 
wood burning stoves
 
subject: How to add a File Hyperlink to jsp?user can download it?