File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes JSTL and resource bundles Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "JSTL and resource bundles" Watch "JSTL and resource bundles" New topic

JSTL and resource bundles

harold neiper

Joined: Jun 12, 2002
Posts: 18
I am trying to determine the amount of time it takes for an update to a resource bundle to be recognized by an application, if it even does. In other words do I have to redeploy the application or will the file changes be reloaded at a specific interval? This is specifically for the use with the 'i18n ' features of JSTL.
Faisal Khan
Ranch Hand

Joined: Jun 29, 2003
Posts: 285
If you have made changes to the deployment descriptor, which I think you would have and added new tld files etc then you will need to restart the container for the new resources to get loaded. Depending on what you are using, you may be able to reload the webapp itself and not restart the whole container.

The secret to creativity is knowing how to hide your sources.
harold neiper

Joined: Jun 12, 2002
Posts: 18
No changes to the deployment descriptor. Just updated one of the key=value pairs in a resource bundle used for i18n. Then uploaded the updated bundle to the server (in my case it is located in the /WEB-INF/classes/... direcotry structure).
R. Shellbay

Joined: Sep 19, 2003
Posts: 13
My guess is that you need to restart your webserver each time. At least that's my experience. The reason, i think, is that when the resourcebundle is loaded, JVM "transforms" it into a java class, and hence it is not reloaded unless the classloader is reloaded => restart...
I agree. Here's the link:
subject: JSTL and resource bundles
It's not a secret anymore!