- Timestamp:
- 11/04/11 16:50:31 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.3/security/ExpressoCert/src/br/gov/serpro/setup/Setup.java
r3394 r5152 45 45 for (String[] parameter : getParameterInfo()) { 46 46 String parameterName = parameter[0]; 47 String parameterValue ;47 String parameterValue = null; 48 48 49 parameterValue = this.currentApplet.getParameter(parameterName); 49 if (this.currentApplet != null){ 50 parameterValue = this.currentApplet.getParameter(parameterName); 51 } 50 52 51 53 System.out.println("parameter: "+parameterName+" value: "+parameterValue); … … 76 78 currentLocale = this.buildLocale(parameters.getProperty("locale")); 77 79 langResources = new HashMap<String, ResourceBundle>(2); 78 langResources.put("ExpressoCertMessages", ResourceBundle.getBundle(" ExpressoCertMessages", currentLocale));80 langResources.put("ExpressoCertMessages", ResourceBundle.getBundle("br.gov.serpro.i18n.ExpressoCertMessages", currentLocale)); 79 81 82 } 83 84 public boolean setParameter(String parameter, String value){ 85 86 if (parameter != null && value != null){ 87 88 if (parameter.equals("debug") || parameter.equals("token") || parameter.equals("locale")){ 89 this.parameters.setProperty(parameter, value); 90 return true; 91 } 92 } 93 94 return false; 80 95 } 81 96
Note: See TracChangeset
for help on using the changeset viewer.