try {
//TODO 取得所有字段
String sql = "Select MAIN_SERVER1 FROM MAPS_CMS_DB_CONN where MAPS_UID='"
+ maps_uid + "' AND MAPS_PASS = '" + passWord + "'";
String xml;
xml = webservers.selDepartmentMessage(sql, cmsid,
serverAddress);
branchreturnList = (ArrayList<Map<String, Object>>) xmltolist
.xml2List(xml);
if (branchreturnList.isEmpty()) {
response.getWriter().print("2");
} else {
String syncSever1 = (String) branchreturnList.get(0)
.get("MAIN_SERVER1");
request.setAttribute("serverAddress",syncSever1);
response.getWriter().print("1");
}
} catch (Exception e) {
e.printStackTrace();
}
//返回前台
request.getRequestDispatcher("index.jsp").forward(request,response);
//TODO 取得所有字段
String sql = "Select MAIN_SERVER1 FROM MAPS_CMS_DB_CONN where MAPS_UID='"
+ maps_uid + "' AND MAPS_PASS = '" + passWord + "'";
String xml;
xml = webservers.selDepartmentMessage(sql, cmsid,
serverAddress);
branchreturnList = (ArrayList<Map<String, Object>>) xmltolist
.xml2List(xml);
if (branchreturnList.isEmpty()) {
response.getWriter().print("2");
} else {
String syncSever1 = (String) branchreturnList.get(0)
.get("MAIN_SERVER1");
request.setAttribute("serverAddress",syncSever1);
response.getWriter().print("1");
}
} catch (Exception e) {
e.printStackTrace();
}
//返回前台
request.getRequestDispatcher("index.jsp").forward(request,response);