wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Default file 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 » Products » Tomcat
Bookmark "Default file location" Watch "Default file location" New topic
Author

Default file location

Geoff Dinsdale
Greenhorn

Joined: Jun 29, 2004
Posts: 4
I have a bean that is separated from my jsp's by an open source package, namely cewolf, which precludes me passing parameters. In that bean I want to be able to open a properties file in order to get my data storage, (either db or csv's). What directory should that properties file be put in?
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

If you can't pass any parameters into your bean whatsoever, then how would placing the file in *any* location make it available inside that bean?

unless the bean already expects it in a certain location, so of course, you'd put it there.

What am I missing ?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Default file location
 
Similar Threads
How to access a properties file from a messagedrivenbean
Detect if a .properties file is in a jar
cannot load property file from WAR
Problem in Externalizing the Configuration
How to read properties file in netbeans?