Properties prop = new Properties(); Properties是做什么用的
Properties prop = new Properties();
prop.load(FileUtil.createInputStream("/resources/configuration.properties"));
this.cookiInf(prop);
private void cookiInf(Properties prop) throws Exception {
String cookieName = prop.getProperty("cookie.name");
String encode = prop.getProperty("cookie.encode");
String shokuinNoKey = prop.getProperty("cookie.key.shokuinno");
String cookieValue = "aaa=01&" + shokuinNoKey + "="
+ ((LoginForm) this.form).getUserId();
Cookie cookie = this.cookies.createCookie(URLEncoder.encode(cookieName,
encode), URLEncoder.encode(cookieValue, encode));
this.cookies.addCookie(cookie);
}