You’ve already seen how the error messages returned from a form validation can be internationalized. The same can be done with the contents of a JSP file.
The bean:message tag looks for a value in the specified message bundle (your friend ApplicationResources.properties by default) and sends it to the browser, and can even take up to five parameterized arguments. Listing 7.9 shows minibar.jsp rewritten to support international text.
The additions to the resource bundle to support these new messages are
stocktrack.minibar.welcomeback=Welcome back, stocktrack.minibar.yourport=Your Portfolio stocktrack.minibar.symbol=Symbol stocktrack.minibar.holdings=Holdings stocktrack.minibar.latestquote=Lastest Quote stocktrack.minibar.currentvalue=Current Value stocktrack.minibar.updatemessage=You can update your portfolio by clicking stocktrack.minibar.loginplease=Log In Please stocktrack.minibar.username=Username stocktrack.minibar.password=Password stocktrack.minibar.noaccount1=No account? Click stocktrack.minibar.here=here stocktrack.minibar.noaccount2=to create one. stocktrack.minibar.techstocks=Selected Technology Stocks