锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产不卡免费视频,久久综合久久综合这里只有精品,欧美中文字幕一区二区三区亚洲http://www.aygfsteel.com/Timnity/category/6496.htmlzh-cnFri, 02 Mar 2007 15:13:28 GMTFri, 02 Mar 2007 15:13:28 GMT60鐩稿綋濂界殑session璁茶В錛屽彈鐩婂尓嫻?/title><link>http://www.aygfsteel.com/Timnity/archive/2006/03/29/38084.html</link><dc:creator>Timnity</dc:creator><author>Timnity</author><pubDate>Wed, 29 Mar 2006 08:33:00 GMT</pubDate><guid>http://www.aygfsteel.com/Timnity/archive/2006/03/29/38084.html</guid><wfw:comment>http://www.aygfsteel.com/Timnity/comments/38084.html</wfw:comment><comments>http://www.aygfsteel.com/Timnity/archive/2006/03/29/38084.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/Timnity/comments/commentRss/38084.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/Timnity/services/trackbacks/38084.html</trackback:ping><description><![CDATA[ <a >http://www.matrix.org.cn/resource/article/44/44260_session.html</a> <img src ="http://www.aygfsteel.com/Timnity/aggbug/38084.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/Timnity/" target="_blank">Timnity</a> 2006-03-29 16:33 <a href="http://www.aygfsteel.com/Timnity/archive/2006/03/29/38084.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>JSF涓殑涓浜涚粏鑺?/title><link>http://www.aygfsteel.com/Timnity/archive/2006/03/03/33472.html</link><dc:creator>Timnity</dc:creator><author>Timnity</author><pubDate>Fri, 03 Mar 2006 07:26:00 GMT</pubDate><guid>http://www.aygfsteel.com/Timnity/archive/2006/03/03/33472.html</guid><wfw:comment>http://www.aygfsteel.com/Timnity/comments/33472.html</wfw:comment><comments>http://www.aygfsteel.com/Timnity/archive/2006/03/03/33472.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/Timnity/comments/commentRss/33472.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/Timnity/services/trackbacks/33472.html</trackback:ping><description><![CDATA[<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US>JSF</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">杈撳嚭鏍囩</SPAN><SPAN lang=EN-US>:</SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT style="BACKGROUND-COLOR: #ffc0cb">outputLabel</FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">浜х敓</SPAN><SPAN lang=EN-US><label>HTML</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鏍囩</SPAN><SPAN lang=EN-US>,</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">浣跨敤</SPAN><SPAN lang=EN-US>for</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">灞炴ф寚瀹氱粍浠剁殑</SPAN><SPAN lang=EN-US>id,</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">渚嬪</SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT color=#000080><h:inputText id="user" value="#{user.name}"/><BR><h:outputLabel for="user" value="#{user.name}"/></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">浼氫駭鐢熶互涓嬫爣絳?/SPAN><SPAN lang=EN-US>:</SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT color=#000080><input id="user" type="text" name="user" value="guest" /><BR><label for="user"></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p> <BR></o:p></SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鐤戦棶</SPAN><SPAN lang=EN-US>:</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鏃㈢劧</SPAN><SPAN lang=EN-US>outputLabel</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">宸茬粡浣跨敤</SPAN><SPAN lang=EN-US>for</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鎸囧畾浜嗙粍浠?/SPAN><SPAN lang=EN-US>,</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鏄惁鍙互鍏變韓鍊?/SPAN><SPAN lang=EN-US>value?</SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT color=#000080><h:outputLabel for="user"/></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">緇忔祴璇?/SPAN><SPAN lang=EN-US>,</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鍊兼棤娉曞叡浜?/SPAN><SPAN lang=EN-US>.<BR><BR></SPAN></P><img src ="http://www.aygfsteel.com/Timnity/aggbug/33472.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/Timnity/" target="_blank">Timnity</a> 2006-03-03 15:26 <a href="http://www.aygfsteel.com/Timnity/archive/2006/03/03/33472.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>jsp榪炴帴鏁版嵁搴?澶у叏 (杞?http://www.aygfsteel.com/Timnity/archive/2005/12/29/25946.htmlTimnityTimnityThu, 29 Dec 2005 13:45:00 GMThttp://www.aygfsteel.com/Timnity/archive/2005/12/29/25946.htmlhttp://www.aygfsteel.com/Timnity/comments/25946.htmlhttp://www.aygfsteel.com/Timnity/archive/2005/12/29/25946.html#Feedback0http://www.aygfsteel.com/Timnity/comments/commentRss/25946.htmlhttp://www.aygfsteel.com/Timnity/services/trackbacks/25946.html璁稿鍒濆jsp鐨勭綉鍙嬬粡甯鎬細闂暟鎹簱鎬庝箞榪炴帴鍟婏紝鎴戞葷粨涓涓嬩緵澶у鍙傝冿紝
鍏跺疄榪欑鎶婃暟鎹簱閫昏緫鍏ㄩ儴鏀懼湪jsp閲屾湭蹇呮槸濂界殑鍋氭硶錛屼絾鏄湁鍒╀簬鍒濆鑰呭涔狅紝褰撳ぇ瀹跺鍒頒竴瀹氱▼搴︾殑鏃跺欙紝
鍙互鑰冭檻鐢∕VC鐨勬ā寮忓紑鍙戙傚湪緇冧範榪欎簺浠g爜鐨勬椂鍊欙紝浣犱竴瀹氬皢jdbc鐨勯┍鍔ㄧ▼搴忔斁鍒版湇鍔″櫒鐨勭被璺緞閲岋紝
鐒跺悗瑕佸湪鏁版嵁搴撻噷寤轟竴涓〃test,鏈変袱涓瓧孌墊瘮濡備負test1錛宼est2錛屽彲浠ョ敤涓嬮潰SQL寤?
create table test(test1 varchar(20),test2 varchar(20)
鐒跺悗鍚戣繖涓〃鍐欏叆涓鏉℃祴璇曠邯褰曪紝閭d箞鐜板湪寮濮嬫垜浠殑jsp鍜屾暟鎹簱涔嬫梾鍚с?

涓銆乯sp榪炴帴Oracle8/8i/9i鏁版嵁搴擄紙鐢╰hin妯″紡錛?
testoracle.jsp濡備笅錛?
<%@ page contentType="text/html;charset=gb2312"%>
<%@ page import="java.sql.*"%>
<html>
<body>
<%Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
String url="jdbc:oracle:thin:@localhost:1521:orcl";
//orcl涓轟綘鐨勬暟鎹簱鐨凷ID
String user="scott";
String password="tiger";
Connection conn= DriverManager.getConnection(url,user,password);
Statement stmt=conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
String sql="select * from test";
ResultSet rs=stmt.executeQuery(sql);
while(rs.next()) {%>
鎮(zhèn)ㄧ殑絎竴涓瓧孌靛唴瀹逛負錛?lt;%=rs.getString(1)%>
鎮(zhèn)ㄧ殑絎簩涓瓧孌靛唴瀹逛負錛?lt;%=rs.getString(2)%>
<%}%>
<%out.print("鏁版嵁搴撴搷浣滄垚鍔燂紝鎭枩浣?);%>
<%rs.close();
stmt.close();
conn.close();
%>
</body>
</html>

浜屻乯sp榪炴帴Sql Server7.0/2000鏁版嵁搴?/STRONG>
testsqlserver.jsp濡備笅錛?
<%@ page contentType="text/html;charset=gb2312"%>
<%@ page import="java.sql.*"%>
<html>
<body>
<%Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver").newInstance();
String url="jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=pubs";
//pubs涓轟綘鐨勬暟鎹簱鐨?
String user="sa";
String password="";

Connection conn= DriverManager.getConnection(url,user,password);
Statement stmt=conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
String sql="select * from test";
ResultSet rs=stmt.executeQuery(sql);
while(rs.next()) {%>
鎮(zhèn)ㄧ殑絎竴涓瓧孌靛唴瀹逛負錛?lt;%=rs.getString(1)%>
鎮(zhèn)ㄧ殑絎簩涓瓧孌靛唴瀹逛負錛?lt;%=rs.getString(2)%>
<%}%>
<%out.print("鏁版嵁搴撴搷浣滄垚鍔燂紝鎭枩浣?);%>
<%rs.close();
stmt.close();
conn.close();

%>
</body>
</html>

涓夈乯sp榪炴帴DB2鏁版嵁搴?/STRONG>
testdb2.jsp濡備笅錛?
<%@ page contentType="text/html;charset=gb2312"%>
<%@ page import="java.sql.*"%>
<html>
<body>
<%Class.forName("com.ibm.db2.jdbc.app.DB2Driver ").newInstance();
String url="jdbc:db2://localhost:5000/sample";
//sample涓轟綘鐨勬暟鎹簱鍚?
String user="admin";
String password="";
Connection conn= DriverManager.getConnection(url,user,password);
Statement stmt=conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
String sql="select * from test";
ResultSet rs=stmt.executeQuery(sql);
while(rs.next()) {%>
鎮(zhèn)ㄧ殑絎竴涓瓧孌靛唴瀹逛負錛?lt;%=rs.getString(1)%>
鎮(zhèn)ㄧ殑絎簩涓瓧孌靛唴瀹逛負錛?lt;%=rs.getString(2)%>
<%}%>
<%out.print("鏁版嵁搴撴搷浣滄垚鍔燂紝鎭枩浣?);%>
<%rs.close();
stmt.close();
conn.close();
%>
</body>
</html>
鍥涖乯sp榪炴帴Informix鏁版嵁搴?
testinformix.jsp濡備笅錛?
<%@ page contentType="text/html;charset=gb2312"%>
<%@ page import="java.sql.*"%>
<html>
<body>
<%Class.forName("com.informix.jdbc.IfxDriver").newInstance();
String url =
"jdbc:informix-sqli://123.45.67.89:1533/testDB:INFORMIXSERVER=myserver;
user=testuser;password=testpassword";
//testDB涓轟綘鐨勬暟鎹簱鍚?
Connection conn= DriverManager.getConnection(url);
Statement stmt=conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
String sql="select * from test";
ResultSet rs=stmt.executeQuery(sql);
while(rs.next()) {%>
鎮(zhèn)ㄧ殑絎竴涓瓧孌靛唴瀹逛負錛?lt;%=rs.getString(1)%>
鎮(zhèn)ㄧ殑絎簩涓瓧孌靛唴瀹逛負錛?lt;%=rs.getString(2)%>
<%}%>
<%out.print("鏁版嵁搴撴搷浣滄垚鍔燂紝鎭枩浣?);%>
<%rs.close();
stmt.close();
conn.close();
%>
</body>
</html>

浜斻乯sp榪炴帴Sybase鏁版嵁搴?/STRONG>
testmysql.jsp濡備笅錛?
<%@ page contentType="text/html;charset=gb2312"%>
<%@ page import="java.sql.*"%>
<html>
<body>
<%Class.forName("com.sybase.jdbc.SybDriver").newInstance();
String url =" jdbc:sybase:Tds:localhost:5007/tsdata";
//tsdata涓轟綘鐨勬暟鎹簱鍚?
Properties sysProps = System.getProperties();
SysProps.put("user","userid");
SysProps.put("password","user_password");
Connection conn= DriverManager.getConnection(url, SysProps);
Statement stmt=conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
String sql="select * from test";
ResultSet rs=stmt.executeQuery(sql);
while(rs.next()) {%>
鎮(zhèn)ㄧ殑絎竴涓瓧孌靛唴瀹逛負錛?lt;%=rs.getString(1)%>
鎮(zhèn)ㄧ殑絎簩涓瓧孌靛唴瀹逛負錛?lt;%=rs.getString(2)%>
<%}%>
<%out.print("鏁版嵁搴撴搷浣滄垚鍔燂紝鎭枩浣?);%>
<%rs.close();
stmt.close();
conn.close();
%>
</body>
</html>

鍏乯sp榪炴帴MySQL鏁版嵁搴?/STRONG>
testmysql.jsp濡備笅錛?
<%@ page contentType="text/html;charset=gb2312"%>
<%@ page import="java.sql.*"%>
<html>
<body>
<%Class.forName("org.gjt.mm.mysql.Driver").newInstance();
String url ="jdbc:mysql://localhost/softforum?user=soft&password=soft1234&useUnicode=true&characterEncoding=8859_1"
//testDB涓轟綘鐨勬暟鎹簱鍚?
Connection conn= DriverManager.getConnection(url);
Statement stmt=conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
String sql="select * from test";
ResultSet rs=stmt.executeQuery(sql);
while(rs.next()) {%>
鎮(zhèn)ㄧ殑絎竴涓瓧孌靛唴瀹逛負錛?lt;%=rs.getString(1)%>
鎮(zhèn)ㄧ殑絎簩涓瓧孌靛唴瀹逛負錛?lt;%=rs.getString(2)%>
<%}%>
<%out.print("鏁版嵁搴撴搷浣滄垚鍔燂紝鎭枩浣?);%>
<%rs.close();
stmt.close();
conn.close();
%>
</body>
</html>

涓冦乯sp榪炴帴PostgreSQL鏁版嵁搴?/STRONG>
testmysql.jsp濡備笅錛?
<%@ page contentType="text/html;charset=gb2312"%>
<%@ page import="java.sql.*"%>
<html>
<body>
<%Class.forName("org.postgresql.Driver").newInstance();
String url ="jdbc:postgresql://localhost/soft"
//soft涓轟綘鐨勬暟鎹簱鍚?
String user="myuser";
String password="mypassword";
Connection conn= DriverManager.getConnection(url,user,password);
Statement stmt=conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
String sql="select * from test";
ResultSet rs=stmt.executeQuery(sql);
while(rs.next()) {%>
鎮(zhèn)ㄧ殑絎竴涓瓧孌靛唴瀹逛負錛?lt;%=rs.getString(1)%>
鎮(zhèn)ㄧ殑絎簩涓瓧孌靛唴瀹逛負錛?lt;%=rs.getString(2)%>
<%}%>
<%out.print("鏁版嵁搴撴搷浣滄垚鍔燂紝鎭枩浣?);%>
<%rs.close();
stmt.close();
conn.close();
%>
</body>
</html>



Timnity 2005-12-29 21:45 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 赤城县| 京山县| 芷江| 时尚| 嘉黎县| 博白县| 大庆市| 林周县| 科技| 屯门区| 沽源县| 锡林郭勒盟| 巴彦淖尔市| 古丈县| 林芝县| 白河县| 浪卡子县| 敦煌市| 北海市| 遂溪县| 平阴县| 桓台县| 新竹县| 象州县| 永康市| 嘉义市| 丰顺县| 化德县| 广元市| 响水县| 磴口县| 邓州市| 临西县| 五莲县| 阿瓦提县| 乌兰浩特市| 津市市| 固原市| 搜索| 吕梁市| 泊头市|