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 Call an attachment from lying in the other drive Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Call an attachment from lying in the other drive" Watch "Call an attachment from lying in the other drive" New topic
Author

Call an attachment from lying in the other drive

Deeps Dhr
Greenhorn

Joined: Jul 12, 2005
Posts: 4
Hello All,

I am working on Tomcat which is in my c: drive...Now i have an attachment in D: drive which i want to call from my application (in c: drive) using <include tag > in my jsp page....

I tried giving the path like this..

<jsp:include page='d:/GIC/Security/try.html' flush='true'>
</jsp:include>

But it doesn't work.

But if i use
FileInputStream propfile = new FileInputStream("d:/GIC/Security/GIC.properties");

it reads the path. Could you pls suggest how i do it...
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60804
    
  65

"Deeps Dhr",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
Forum Bartender


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Call an attachment from lying in the other drive
 
Similar Threads
A problem about the usage of tag jsp:param
Doubt in Final Mock Exam:HFSJ
Re: Attach is the detail on the servlet error "The system cannot find the path specified"
A mock question about security
Servlet Error : The system cannot find the path specified