Image

Resource Bundle

Sorry if I sound silly trying to explain my problem, but here goes nothing.

I'm supposed to modify the source code for a system which involves JSPs, servlets & JDBC, but there is one (type of) line which constantly reappears in the code and I'm stumped =( It has to do with the ResourceBundle object.

Assuming an instance of the ResourceBundle object is created & named rb. The following line would then be used to link to a JSP involved in returning a report to the user, where ABC1 seems to be some form of package:

<a href = "<%=rb.getString("ABC1.Weather.Report")%>">Get Weather Report</a>

I know this has something to do with Enumeration, but I'm quite unable to connect this with the example involving --.Locale & getBundle() shown in Grant Palmer's Java Programmer's Reference (1.3 Edition, Wrox). How does the method getString() work here, and how exactly do the words "Weather" & "Report" work to get the right JSP? How have these words been defined elsewhere?