I use it to access properties files. However the resource bundle is commonly used
to get locale specific properties. So ResourceBundle.getBundle("forms"); will
retrieve forms_en.properties when the platform the jvm running on is english.
Stanley Tan wrote:
> Hi,
>
> What does ResourceBundle do? In the docs, it says I can access
> locale-specific information. In the following example, it is used to
> access "forms.properties".
>
> ResourceBundle bundle = null;
> public void jspInit() {
> bundle = ResourceBundle.getBundle("forms");
> }
>
> So what exactly does a ResourceBundle do? Someone please explain.
>
> Thanks,
> Stanley Tan
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
--
Janco Tanis
------------------------------------------------------------
COAS, Your partner in computer aided services
Nijverheidsweg 34 Tel: +31 (0) 187 49 3222
Postbus 44 Fax: +31 (0) 187 49 2912
3250 AA Stellendam Email: [EMAIL PROTECTED]
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets