Ajay,
This is the code that I created based on your solution:
This is the init servlet:
The error.properties file looks like this:
I have my
ant build script move the error.properties to this folder:
Now, when I invoke this class, through a client, this is the error that I get:
(1) Why is DynamicError having trouble finding the error.properties file?
(2) If I choose to use the LoadErrorProperties.getErrorProperties() init servlet inside DynamicError, there's a type mismatch with getErrorProperties returning a Properties type versus m_resource looking for a ResourceBundle... Meaning, how do I grab the file through my init servlet and use it inside DynamicError?
All my best,
James Dekker
[ January 16, 2007: Message edited by: James Dekker ]