站内搜索: 请输入搜索关键词

当前页面: 开发资料首页JSP 专题JSP实现树型组织架构(6)--包含文件connectinDB.jsp

JSP实现树型组织架构(6)--包含文件connectinDB.jsp

摘要: JSP实现树型组织架构(6)--包含文件connectinDB.jsp

<textarea readonly style="border:none;font-family:Courier New;line-height:150%;width:760px;overflow-y:visible">//connectionDB.jsp

<%@ page contentType="text/html;charset=Big5"%>
<%@ page import="java.sql.*"%>
<%
Connection conn=null;
try{
Class.forName("oracle.jdbc.driver.OracleDriver");
String url="jdbc:oracle:thin:@192.168.56.199:1521:asdb";
String user="system";
String password="oracle01";
conn=DriverManager.getConnection(url, user, password);
}
catch(Exception e1)
{e1.printStackTrace();}


%>

//orgConnInclude.jsp

<%@ page import="java.sql.*"%>

<%
Connection conn=null;
try{
Class.forName("oracle.jdbc.driver.OracleDriver");
String url="jdbc:oracle:thin:@192.168.56.199:1521:asdb";
String user="System";
String password="oracle01";
conn=DriverManager.getConnection(url, user, password);}
catch(Exception se1)
{se1.printStackTrace();}
%>

</textarea>

↑返回目录
前一篇: JSP实现树型组织架构(4)--插入页面orgInsert.jsp
后一篇: JSP实现树型组织架构(2)--显示orgView