最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
JSP实现树型组织架构(6)--包含文件connectinDB.jsp & orgConnI
时间:2022-07-02 17:57:03 编辑:袖梨 来源:一聚教程网
//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();}
%>
<%@ 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();}
%>
相关文章
- 以闪亮之名店长体验流霞季怎么玩 缘溪临霞套装活动介绍 12-31
- 未定事件簿旧梦新生左然篇怎么玩 旧梦新生左然篇活动介绍 12-31
- 未定事件簿左然破浪远行怎么样 12-31
- 桃源深处有人家行医问诊怎么玩 12-31
- 恋与制作人跨年福利有哪些 恋与制作人跨年福利内容介绍 12-31
- 阴阳师协同对弈大乱斗怎么玩 阴阳师协同对弈大乱斗活动介绍 12-31