没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源评论




格式:txt 资源大小:155.0B 页数:1










格式:doc 资源大小:1.1MB 页数:24






格式:zip 资源大小:48.4KB







<meta http-equiv="expires" content="0"> <meta http-equiv="pragma" content="no-cache"> <meta http-equiv="content-type" content="text/html; charset=GBK"> <%@ include file="connect.jsp"%> <%@ page language="java" contentType="text/html" %> <%//@ page import="java.sql.*" %> <%//@ page import="com.sap.mw.jco.*" %> <html> <head> </head> <body> <% String app = "DELIVERY"; String session_id=request.getParameter("sessionId"); String n = new String(); Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver"); Connection connection = null; PreparedStatement ps = null; ResultSet rs = null; try{ connection = DriverManager.getConnection("jdbc:microsoft:sqlserver://ap12hr1:1433;DatabaseName=SSO", "SSO", "ssobuilder"); ps = connection.prepareStatement("SELECT * FROM SSO.USER_LOGIN WHERE SESSION_ID = ?"); ps.setString(1, session_id); rs = ps.executeQuery(); if(rs.next()){ n = rs.getString("USER_LOGIN_ID"); if(rs.next()){ // multi session id %>
Error!, please login again. Back
<% }else{ IFunctionTemplate ftemplate = repository.getFunctionTemplate("Z_LB_GETUSERAU"); JCO.Function function = new JCO.Function(ftemplate); JCO.Client client = JCO.getClient(SID); JCO.ParameterList input = function.getImportParameterList(); input.setValue(n, "I_USERID" ); input.setValue(app, "I_APP"); client.execute(function); JCO.Table userrole = function.getTableParameterList().getTable("EUSERAU"); if (userrole.getNumRows() > 0) { //Angela Zhang 20050324 ----------- String user = n; String role = userrole.getString("ROLE"); String ipaddress=request.getRemoteAddr(); com.connectpackage.LogonBean myLogon = new com.connectpackage.LogonBean(); myLogon.setUserid(user); myLogon.setApp(app); myLogon.setRole(role); myLogon.setIpaddress(ipaddress); if (myLogon.LogonLog().equals("F")) response.sendRedirect("https://"+session.getAttribute("app_server")+"/info_page/logon_error.htm"); // --------------------------------- session.setAttribute("role_delivery",userrole.getString("ROLE")); session.setAttribute("user",n); session.setAttribute("pass","T"); response.sendRedirect("delivery_function_select.jsp"); %> <%} else { %>You have no authorization. Back
<% }//if // Release the client into the pool JCO.releaseClient(client); JCO.removeClientPool(SID); } }else{ //no user_login_id found %>User or password error! Please login again. Back
<% } }catch(Exception e){ System.out.println(e); }finally{ if(rs != null) rs.close(); if(ps != null) ps.close(); if(connection != null) connection.close(); } %> </body> </html> 我要通过工具连接 怎么连 有用户密码吗 sqlservrt浏览:1
资源评论


xiaoyao20102
- 粉丝: 3
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


最新资源
- (源码)基于Arduino平台的颗粒物传感器监测系统.zip
- 近期国际金融基础设施机构区块链技术研究进展及重要观点.docx
- 20XXIT科技互联网年会创意策划案通用课件模板.pptx
- 物联网感知层设计的主要技术要点研究.docx
- 启程自动化培训机构每日一题案例解析三.doc
- 机械设计方案制造及其自动化(汽车工程)专业.doc
- 礼仪修养显个人魅力信息化说课稿.ppt
- 我的毕设-基于知识图谱和循环神经网络的推荐系统
- 根际微生物群落结构与生态功能
- 我国计算机业的发展状况.doc
- 启发式教学法在软件工程课程中的应用.docx
- 基于消费者心理视角网络广告效果评价研究分析.doc
- 影响计算机网络安全的因素及解决措施.docx
- C单片机远程数据采集系统设计方案.doc
- 计算机基础知识题集414道.doc
- 我国高校教育信息化现状及发展策略研究.docx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



安全验证
文档复制为VIP权益,开通VIP直接复制
