The moose likes JSP and the fly likes File System Files Access by Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "File System Files Access by Tomcat" Watch "File System Files Access by Tomcat" New topic
Author

File System Files Access by Tomcat

marco pisellonio
Greenhorn

Joined: Mar 05, 2003
Posts: 3
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
chanoch wiggers
Author
Ranch Hand

Joined: May 24, 2001
Posts: 245
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)


chanoch<p><a href="http://www.amazon.com/exec/obidos/ASIN/1861007736/" target="_blank" rel="nofollow">Author of Professional Apache Tomcat</a>
 
 
subject: File System Files Access by Tomcat
 
Threads others viewed
jsp include problem
Creating an Executable JAR file with sub directories
Apache/Tomcat configuration
File System Files Access by Tomcat
Tomcat Can't See Images or Javascript Subdirectories
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com