〔config.properties〕
[cms properties]
cmsservername=cms
cmstemplatedirectoryname=template
[time out:minute]
time_out=300000
[administrator setting]
administrator=sa
admingroup=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
*
description:
*
copyright: copyright (c) 2004
*
company:
* @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;
}
}