• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

File System Files Access by Tomcat

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have a very big problem. In my Web Application I have to open some images (.tif) in my Jsp.
The problem is that all those images togheter are very strong (a lot of Gb) and so I have to place them into different subdirectories inside the main directory. The main directory is quite strong, and so I cannot place it under my Application's defaultroot, at the same level than jsp, neither in the .war file. I have to place it in another file system directory than this. So, I need my jsp to be able to enter into this file system directory and also into all of its subdirectories.
How can I do that??
OS: Windows 200 Server
AS: Tomcat 4.0.6
Thanks a lot... and sorry for my English!
bye
 
Author
Posts: 245
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
strong=large or big btw.
if you have to do this - and i dont udnerstand why there is a limit on the number of filesyou can put in a given folder - then you can add C to your classpath and use getResourceAsStream() to get the given resource as an InputStream. Its a very bad idea to give yuo web server access to yuor harddrive tho. the whole point of web applications is that the rest of your machine is shielded from the application (sandboxed) so that anyone who cracks the security on the web app doesnt root your machine (take it over and control it)
 
He's giving us the slip! Quick! Grab this tiny ad!
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic