Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Call an attachment from lying in the other drive

 
Deeps Dhr
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64975
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic