This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes temp location Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "temp location" Watch "temp location" New topic

temp location

Ruchee Goyal

Joined: Sep 12, 2006
Posts: 12
I need to save some temp files in a temporary location during run time. And i don't want that temp location to hard code in my servlet. So what is the best place to document this temp location.
I thought of having this location documented in a properties file. the content of the property would be something like:

but i couldn't read this properties file in my servlet code using relative path or something.

either let me know a way to read this properties file in my servlet code using relative path or tell me an alternate to document this location.
I agree. Here's the link:
subject: temp location
Similar Threads
Why can't servlets access a file with a relative path
Web.xml problems
servlet API
adding a property file to a jar
Read Text File Using Relative Path.