%@ page contentType="text/html; charset=GBK" %>
<%@ page import="com.justep.loader.LibContext"%>
<%@ page import="java.lang.reflect.Method" %>
<%@ page import="java.util.*" %>
<%
Class pclass = LibContext.getInstance().getLoader().loadClass("com.justep.web.SysServerProvider");
Object pobj = pclass.newInstance();
Method getBXClassIDMethod = pclass.getMethod("getBXClassID",new Class[]{});
Method getBXCodeMethod = pclass.getMethod("getBXCodebase",new Class[]{});
Method getSysServerURLMethod = pclass.getMethod("getSysServerURL",new Class[]{});
String classId = (String)getBXClassIDMethod.invoke(pobj,new Object[]{});
String codeBase = (String)getBXCodeMethod.invoke(pobj,new Object[]{});
String url = (String)getSysServerURLMethod.invoke(pobj,new Object[]{});
String username = request.getParameter("username");
String pwd = request.getParameter("pwd");
if(username.contains("\'")) {
username = username.substring(username.indexOf("\'")+1,username.lastIndexOf("\'"));
}
if(username.contains("\"")) {
username = username.substring(username.indexOf("\"")+1,username.lastIndexOf("\""));
}
if(pwd.contains("\'")) {
pwd = pwd.substring(pwd.indexOf("\'")+1,pwd.lastIndexOf("\'"));
}
if(pwd.contains("\"")) {
pwd = pwd.substring(pwd.indexOf("\"")+1,pwd.lastIndexOf("\""));
}
HashMap map = (HashMap) request.getParameterMap();
String key = "";
String value = "";
String GetURL = "";
for(Iterator it=map.keySet().iterator();it.hasNext();) {
key = it.next();
value = request.getParameter(key);
System.out.println("key:"+key+" value:"+value);
GetURL = GetURL + key + "=" + value;
if(it.hasNext()) {
GetURL = GetURL + "&";
}
}
%>
河北省电力公司生产管理信息系统