锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲一本视频,精品久久久久久久中文字幕,蜜乳av另类精品一区二区http://www.aygfsteel.com/baogenfly/category/19421.htmlzh-cnFri, 02 Mar 2007 06:52:15 GMTFri, 02 Mar 2007 06:52:15 GMT60- 鍦═omcat涓厤緗甁STLhttp://www.aygfsteel.com/baogenfly/articles/95565.html鐜嬫煇鏌?/dc:creator>鐜嬫煇鏌?/author>Tue, 23 Jan 2007 08:13:00 GMThttp://www.aygfsteel.com/baogenfly/articles/95565.htmlhttp://www.aygfsteel.com/baogenfly/comments/95565.htmlhttp://www.aygfsteel.com/baogenfly/articles/95565.html#Feedback1http://www.aygfsteel.com/baogenfly/comments/commentRss/95565.htmlhttp://www.aygfsteel.com/baogenfly/services/trackbacks/95565.html
1 涓嬭澆JSTL鍜孴omcat錛屽彲浠ュ湪apache緗戠珯涓婁笅鍒?br />2 灝嗕笅杞藉埌鐨凧STL鍘嬬緝鍖呰В鍘嬶紝鐒跺悗鎶婂叾涓殑lib鏂囦歡澶逛笅鐨勬枃浠禼opy鍒板叿浣撳簲鐢╓EB-INF/lib閲岋紝鎶妕ld鐩綍copy鍒癢EB-INF鐩綍涓?br />3
鍦╳eb.xml鏂囦歡涓姞鍏ヤ笅闈㈢殑璇彞錛?br /><taglib>
聽聽聽 <taglib-uri>http://java.sun.com/jstl/fmt</taglib-uri>
聽聽聽 <taglib-location>/WEB-INF/tld/fmt.tld</taglib-location>
</taglib>
<taglib>
聽聽聽 <taglib-uri>http://java.sun.com/jstl/fmt-rt</taglib-uri>
聽聽聽 <taglib-location>/WEB-INF/tld/fmt-1_0-rt.tld</taglib-location>
</taglib>
<taglib>
聽聽聽 <taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
聽聽聽 <taglib-location>/WEB-INF/tld/c.tld</taglib-location>
</taglib>
<taglib>
聽聽聽 <taglib-uri>http://java.sun.com/jstl/core-rt</taglib-uri>
聽聽聽 <taglib-location>/WEB-INF/tld/c-1_0-rt.tld</taglib-location>
</taglib>
<taglib>
聽聽聽 <taglib-uri>http://java.sun.com/jstl/sql</taglib-uri>
聽聽聽 <taglib-location>/WEB-INF/tld/sql.tld</taglib-location>
</taglib>
<taglib>
聽聽聽 <taglib-uri>http://java.sun.com/jstl/sql-rt</taglib-uri>
聽聽聽 <taglib-location>/WEB-INF/tld/sql-1_0-rt.tld</taglib-location>
</taglib>
<taglib>
聽聽聽 <taglib-uri>http://java.sun.com/jstl/x</taglib-uri>
聽聽聽 <taglib-location>/WEB-INF/tld/x.tld</taglib-location>
</taglib>
<taglib>
聽聽聽 <taglib-uri>http://java.sun.com/jstl/x-rt</taglib-uri>
聽聽聽 <taglib-location>/WEB-INF/tld/x-1_0-rt.tld</taglib-location>
</taglib>
聽
4 嫻嬭瘯
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
聽聽聽 pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Hello JSTL</title>
</head>
<body>
<c:out value="Hello,JSTL!"/>
</body>

]]>- 鍦═omcat涓厤緗甁NDIhttp://www.aygfsteel.com/baogenfly/articles/95425.html鐜嬫煇鏌?/dc:creator>鐜嬫煇鏌?/author>Mon, 22 Jan 2007 15:23:00 GMThttp://www.aygfsteel.com/baogenfly/articles/95425.htmlhttp://www.aygfsteel.com/baogenfly/comments/95425.htmlhttp://www.aygfsteel.com/baogenfly/articles/95425.html#Feedback0http://www.aygfsteel.com/baogenfly/comments/commentRss/95425.htmlhttp://www.aygfsteel.com/baogenfly/services/trackbacks/95425.html
浠omcat 5.5 錛孧ysql 5.0涓轟緥璇存槑
1 鍦╰omcat鐨刟dmin欏甸潰涓緗瓺ata Source
JNDI Name錛歍EST
Data Source URL錛歫dbc:mysql://localhost:3306/test
JDBC Driver Class: com.mysql.jdbc.Driver
User Name: test聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 <!--鏁版嵁搴撶殑鐢ㄦ埛鍚嶏紝瀵嗙爜-->
Password:****
2 鍦╰omcat_home/conf/context.xml鏂囦歡涓殑<context></context>涔嬮棿鍔犲叆涓嬮潰鐨勪唬鐮侊細
<Resource
聽聽聽聽聽 auth="baogenfly"
聽聽聽聽聽 description="test"
聽聽聽聽聽 name="jdbc/test"
聽聽聽聽聽 type="javax.sql.DataSource"
聽聽聽聽聽 password="test"
聽聽聽聽聽 driverClassName="com.mysql.jdbc.Driver"
聽聽聽聽聽 maxWait="5000"
聽聽聽聽聽 username="test"
聽聽聽聽聽 url="jdbc:mysql://localhost:3306/test"
聽聽聽聽聽 maxActive="4"/>
3 鍦ㄥ叿浣撶殑web搴旂敤涓殑WEB-INF鐩綍涓嬬殑web.xml鏂囦歡涓姞鍏ヤ笅闈㈢殑浠g爜錛?br />
<resource-ref>
聽聽聽聽聽聽聽 <description> DataSource example</description>
聽聽聽聽聽聽聽 <res-ref-name>jdbc/test</res-ref-name>
聽聽聽聽聽聽聽 <res-type>javax.sql.DataSource</res-type>
聽聽聽聽聽聽聽 <res-auth>baogenfly</res-auth>
</resource-ref>
4 嫻嬭瘯浠g爜錛?br />
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
聽聽聽 pageEncoding="ISO-8859-1"%>
<%@ page import="java.util.*" %>
<%@ page import="java.io.*" %>
<%@ page import="java.sql.*" %>
<%@ page import="javax.sql.*" %>
<%@ page import="javax.naming.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>JNDI TEST</title>
</head>
<body>
<% String path = request.getContextPath();
聽聽 String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
聽
聽聽 Connection conn = null;
聽聽 PreparedStatement ps = null;
聽聽 ResultSet rs = null;
聽聽
聽聽 Context initCtx = new InitialContext();
聽聽 Context ctx = (Context)initCtx.lookup("java:comp/env");
聽聽 DataSource ds = (DataSource) ctx.lookup("jdbc/test");
聽聽 conn = ds.getConnection();
聽聽 ps = conn.prepareStatement("Select * from balance");
聽聽 rs = ps.executeQuery();
聽聽 while(rs.next()){
聽聽聽 out.println(rs.getString(1)+"<br>");
聽聽聽 out.println(rs.getString(2)+"<br>");
聽聽聽 out.println(rs.getString(3)+"<br>");
聽聽聽 out.println(rs.getString(4)+"<br>");
聽聽 }
聽聽 rs.close();
聽聽 stmt.close();
%>
</body>
</html>

]]>
主站蜘蛛池模板:
安新县|
民权县|
延安市|
海门市|
嘉禾县|
平果县|
张家港市|
神木县|
乐平市|
龙州县|
鸡泽县|
友谊县|
开远市|
仁怀市|
文水县|
海门市|
光泽县|
尚志市|
上杭县|
阳原县|
米泉市|
通道|
治县。|
儋州市|
清流县|
绥化市|
澄江县|
龙山县|
包头市|
衡南县|
山阴县|
郴州市|
西吉县|
长兴县|
长寿区|
昌宁县|
申扎县|
同德县|
永年县|
闵行区|
永嘉县|