Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

question regarding <fmt:setBundle>?

Murray9654Mar 23 2013 — edited Mar 24 2013
Hi I have defined <fmt:setBundle> on a jsp page with scope as application. So when i call this jsp for the first time the resource bundle is created but does it create resource bundle every time i call it or only for the first time i call it. I mean from the second time does it check whether resource bundle already exist in the application scope or it creates a fresh resource bundle every time i call this jsp page?

Comments

EJP
Whatever the answer to that might be, it's irrelevant, as ResourceBundle will cache it anyway.
Murray9654
Thank you. what I found is it creates New Resource bundle object every time I load the page. Anyway thanks for the information.
EJP
It can't. There is no accessible constructor. What you mean is that it calls ResourceBundle.loadBundle(). But that returns a cached copy if the bundle has already been loaded, as I already told you.
1 - 3
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Apr 21 2013
Added on Mar 23 2013
3 comments
2,116 views