1 package org.apache.taglibs.standard.examples.i18n; 2 3 import java.util.ListResourceBundle ; 4 5 public class Resources extends ListResourceBundle { 6 private static Object [][] contents; 7 8 static { 9 contents = new Object [][] { 10 { "greetingMorning", "Good Morning!" }, 11 { "greetingEvening", "Good Evening!" }, 12 { "serverInfo", "Name/Version of Servlet Container: {0}, " 13 + "Java Version: {1}" }, 14 { "currentTime", "Current time: {0}" }, 15 { "com.acme.labels.cancel", "Cancel" }, 16 { "java.lang.ArithmeticException", "division by 0" } 17 }; 18 } 19 20 public Object [][] getContents() { 21 return contents; 22 } 23 } 24 | Popular Tags |