On Thu, 4 Oct 2001 13:16, Eung-ju Park wrote:
> Hi.
> I write small servlet which use ResourceManager.
> but ResourceManager.getClassResources( MyServlet.class ) thorws
> MissingResourcesException.
>
> getClassResources find Resources.properties file in package
> foo.bar.MyServlet. It's not
> I think foo.bar.MyServlet.properties for better resource file name. How
> about you?

Hmmm ... I haven't looked at the code recently but the way I originally 
intended to use it was to look for class name + "Resources.properties". So 
you would search for 

foo.bar.MyServletResources.properties

I am not sure that is as good as "foo.bar.MyServlet.properties" but I think I 
prefer to append "Resources". However what you can do is make it search in 
both places, at "foo.bar.MyServletResources.properties" and then at 
"foo.bar.MyServlet.properties". As long as the first one postfixes Resources 
it should be backwards compatible.

-- 
Cheers,

Pete

*---------------------------------------------------------*
| Contrary to popular belief, UNIX is user-friendly. It   |
| just happens to be selective on who it makes friendship |
| with.                                                   |
|                       - Richard Cook                    |
*---------------------------------------------------------*

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to