whichit
asked on
Specifying location of a resource file under Tomcat
Hello. I'm trying to establish what would be the most elegant way of specifying the location of an xml file which we are using (in this case for the commons Digester api).
Most of our property files are kept in the /WEB-INF/classes/resources directory, and are retrieved using the ResourceBundle class. This is fine, but this case is different as we are using the file in a different way.
We have achieved our goal by simply putting the xml file into the resources folder, and specifying the full path to the file in a constants file, ie /LogWindedWebRoot/WEB-INF/ classes/re sources/ou rFile.xml - but something tells me this isn't the best practice. What would be the best or most common location to store such a file, and the best solution for retreiving it?
Thanks!
Most of our property files are kept in the /WEB-INF/classes/resources
We have achieved our goal by simply putting the xml file into the resources folder, and specifying the full path to the file in a constants file, ie /LogWindedWebRoot/WEB-INF/
Thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Cheers.