[Config.properties]
[CMS Properties] cmsservername = cmscmstemplatedirectoryName = Template
[Time Out: minute] Time_Out = 300000
[administrator setting] administrator = saadmingroup = adminRole
[Web path setting] innerResource = / accessControl / JSP / InnerResource /
[Picture Path Setting] PicturePath = C: / Picture / [log path setting] LogPath = C: / log1 /
[Configbundle.java]
Package creator.config;
Import java.util.missingResourceException; import java.util.resourcebundle;
/ ** * *
title: configbundle.java p> *
description: p> *
Copyright: Copyright (c) 2004 p> *
Company: P> * @Author tanbo * @version 1.0 * / public class configbundle {private static resourcebundle bundle;
/ ** * init () * / public configbundle () {}
/ ** * @function getString * @param s String * @return String * / public static String getString (String s) {String s1 = null; try {s1 = getResourceBundle () getString (s);.} Catch (MissingResourceException missingresourceexception ) {System.out.println ("configbundle: getString Error!" MissingResourceException.toString ());} Return S1;}
/ ** * @function getResourceBundle * @return ResourceBundle * / private static ResourceBundle getResourceBundle () {if (bundle == null) bundle = ResourceBundle.getBundle ( "creator.config.config"); return bundle;}}