No more rhymes! I mean it!<br /> <br />Does anybody want a peanut?
[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
42
SCJP, SCWCD, SCBCD, SCJD, BB Java2 and JSP1.1
Originally posted by Zak Nixon:
How do I add files to my classpath for the webserver to pick it up?
Originally posted by Jeroen Wenting:
loads the properties file <your-web-app>/WEB-INF/classes/nl/esa/edhe/handlers.properties
Remember that the name is identical to classnaming, so relative to the root of the classpath (which for a webapp is WEB-IF/classes).
You might be getting null because your properties file is not on the classpath.
This is part of a singleton factory class. The reset method is included to make it possible to replace the propertiesfile at runtime without restarting the webapp (mainly for testing, but could be used by for example an installation routine as well when installing an upgrade to the application).
[ March 05, 2004: Message edited by: Jeroen Wenting ]
James Carman, President<br />Carman Consulting, Inc.
James Carman, President<br />Carman Consulting, Inc.
You are HERE! The other map is obviously wrong. Better confirm with this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|