Forums Register Login

Properties in Web Apps

+Pie Number of slices to send: Send
I'll post a link to this here since I'm gonna find it very useful in web applications.
The discussion was in I/O and Streams and the problem (initially) was to load a properties file without an absolute path. The problem with the initial initial solution using the ClassLoader is that it doesn't work in web apps since they use multiple ClassLoaders with different classpaths.
The code given allows you to have properties with your code that is not attached to a ClassLoader, absolute system path or application context.
Hope it comes in handy
Dave.
yeah, but ... what would PIE do? Especially concerning this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 389 times.
Similar Threads
Load Property file in servlet or jsp
Getting Current Path
How to set up JSDK2.1 server
an access database problem
Reading a file without specifying any path
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 03:34:09.