This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes Access webapp files as resource files 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 » Java in General
Bookmark "Access webapp files as resource files" Watch "Access webapp files as resource files" New topic
Author

Access webapp files as resource files

chris heidt
Greenhorn

Joined: Sep 21, 2010
Posts: 1
I have an application with an embedded jetty server that
occasionally serves up files that i pull from my resource directory.
For organization purposes id like to pull these files out and put them into the webapp directory.

Is there a way to access files in the webapp directory
similar to how i was using the classloader to retrieve resource files?
 
 
subject: Access webapp files as resource files
 
Similar Threads
Running a web app with compiled code
2 Files with the same Name in JAR - which wins?
Disable access to certain directory
Tomcat6 404 on deployed subfolders? (It worked fine two days ago)
Doubt in Web-app structure