??xml version="1.0" encoding="utf-8" standalone="yes"?>
环境安装配置Q?br />
TOMCAT的配|?br />http://download.chinaitlab.com/soft/10791.htm
JAVA配置文g~写说明文档
http://download.chinaitlab.com/soft/10010.htm
一步一步学会配|Kjava开发环?br />http://download.chinaitlab.com/soft/9483.htm
Weblogic7开发EJB的配|?br />http://download.chinaitlab.com/soft/4938.htm
图解JSP环境安装配置
http://download.chinaitlab.com/soft/2157.htm
Tomcat配置Ҏ
http://download.chinaitlab.com/soft/931.htm
全程指导Linux下JAVA环境配置
http://download.chinaitlab.com/soft/11272.htm
学习ҎQ?br />
通过JB4学习JAVA
http://download.chinaitlab.com/soft/7589.htm
10步学?JavaScript
http://download.chinaitlab.com/soft/6492.htm
Java Sctipt学习不求?br />http://download.chinaitlab.com/soft/6361.htm
JSP学习指南
http://download.chinaitlab.com/soft/6152.htm
JAVA学习文档
http://download.chinaitlab.com/soft/6114.htm
J2EE学习W记
http://download.chinaitlab.com/soft/6048.htm
JavaScript学习
http://download.chinaitlab.com/soft/3029.htm
Java2 学习指南
http://download.chinaitlab.com/soft/2743.htm
Juniper学习指南
http://download.chinaitlab.com/soft/2227.htm
J2EE学习资料
http://download.chinaitlab.com/soft/1618.htm
JSP由浅入深
http://download.chinaitlab.com/soft/1315.htm
面向对象~程Q?br />
Java面向对象~程指南
http://download.chinaitlab.com/soft/9792.htm
JAVA的核心技术:面向对象~程
http://download.chinaitlab.com/soft/9093.htm
Java ?UML 面向对象E序设计
http://download.chinaitlab.com/soft/6053.htm
Java 2 ~程21天自学?br />http://download.chinaitlab.com/soft/10507.htm
J2EE~程h
http://download.chinaitlab.com/soft/10506.htm
Java面向对象~程指南
http://download.chinaitlab.com/soft/9792.htm
Java专业~程指南
http://download.chinaitlab.com/soft/9791.htm
Java服务器高U编E?br />http://download.chinaitlab.com/soft/9790.htm
J2EE EAI~程指南
http://download.chinaitlab.com/soft/9784.htm
J2MEMIDP无线讑֤~程指南
http://download.chinaitlab.com/soft/9765.htm
JAVA~程思想 中文?br />http://download.chinaitlab.com/soft/9481.htm
Java XML~程指南
http://download.chinaitlab.com/soft/9097.htm
Java 数据库编E宝?br />http://download.chinaitlab.com/soft/9095.htm
JAVA的核心技术:面向对象~程
http://download.chinaitlab.com/soft/9093.htm
JDBC API数据库编E实作教?br />http://download.chinaitlab.com/soft/9087.htm
核心 JSF ~程
http://download.chinaitlab.com/soft/7946.htm
JAVA 2应用~程150?br />http://download.chinaitlab.com/soft/6815.htm
JAVA数据库编EJDBC
http://download.chinaitlab.com/soft/6113.htm
深入掌握J2EE~程技?br />http://download.chinaitlab.com/soft/6030.htm
实用J2EE设计模式~程指南
http://download.chinaitlab.com/soft/5033.htm
Java for Internet~程技?br />http://download.chinaitlab.com/soft/4198.htm
Java安全性编E指?br />http://download.chinaitlab.com/soft/3773.htm
J2ME无线讑֤~程
http://download.chinaitlab.com/soft/3669.htm
J2EE EJB~程实例
http://download.chinaitlab.com/soft/3141.htm
Java~程思想 W三?br />http://download.chinaitlab.com/soft/2982.htm
Java 极限~程
http://download.chinaitlab.com/soft/1707.htm
Java2~程详解
http://download.chinaitlab.com/soft/1705.htm
|络~程Q?br />
J2EE|络~程标准教程
http://download.chinaitlab.com/soft/9100.htm
Java|络~程实例
http://download.chinaitlab.com/soft/9090.htm
Java P2P|络~程技?br />http://download.chinaitlab.com/soft/6333.htm
Java|络~程
http://download.chinaitlab.com/soft/3871.htm
|络~程基础之 Java Script
http://download.chinaitlab.com/soft/3618.htm
Solaris Shell ~程
http://download.chinaitlab.com/soft/6426.htm
SUN Solaris理手册
http://download.chinaitlab.com/soft/5732.htm
Solaris性能理
http://download.chinaitlab.com/soft/11247.htm
Solaris9安装指南
http://download.chinaitlab.com/soft/5022.htm
SOLARIS高pȝ理员指?br />http://download.chinaitlab.com/soft/3726.htm
Solaris操作环境安全
http://download.chinaitlab.com/soft/1500.htm
Solaris GNOME2.0桌面用户指南
http://download.chinaitlab.com/soft/1488.htm
Solaris 9 12/03 安装指南
http://download.chinaitlab.com/soft/1484.htm
Solaris理员指?br />http://download.chinaitlab.com/soft/1475.htm
中文Solaris9 pȝ理员指?br />http://download.chinaitlab.com/soft/1463.htm
Solaris安全性专题指?br />http://download.chinaitlab.com/soft/746.htm
XMLpdQ?br />
Java XML~程指南
http://download.chinaitlab.com/soft/9097.htm
JavaE序设计EJB、XML与数据库
http://download.chinaitlab.com/soft/9094.htm
XML l极教程
http://download.chinaitlab.com/soft/9057.htm
Java&XML应用
http://download.chinaitlab.com/soft/6211.htm
XML_JAVA指南
http://download.chinaitlab.com/soft/6163.htm
JDBCQ?br />
JDBC API数据库编E实作教?br />http://download.chinaitlab.com/soft/9087.htm
JAVA数据库编EJDBC
http://download.chinaitlab.com/soft/6113.htm
JDBC API 参考教E第三版
http://download.chinaitlab.com/soft/6057.htm
JDBC与Java数据库程序设?br />http://download.chinaitlab.com/soft/6018.htm
Java语言SQL接口 JDBCprogram
http://download.chinaitlab.com/soft/5938.htm
JSP应用E序开发指?br />http://download.chinaitlab.com/soft/1546.htm
?JDBC 理数据库连?br />http://download.chinaitlab.com/soft/935.htm
JDOQ?br />
全面了解JDO数据库编E?br />http://download.chinaitlab.com/soft/7992.htm
StrutsQ?br />
Struts中文手册
http://download.chinaitlab.com/soft/10516.htm
Struts架构指导
http://download.chinaitlab.com/soft/7529.htm
_Nstruts技?br />http://download.chinaitlab.com/soft/6801.htm
Struts 学习h问答
http://download.chinaitlab.com/soft/6156.htm
HibernateQ?br />
Hibernate2.1.2参考手册中文版
http://download.chinaitlab.com/soft/8919.htm
JAVA与模式\J2EE模式Q?br />
J2EE 核心模式
http://download.chinaitlab.com/soft/9785.htm
Java 企业设计模式
http://download.chinaitlab.com/soft/9096.htm
Java单工厂创立性模式介l?br />http://download.chinaitlab.com/soft/7398.htm
EJB设计模式
http://download.chinaitlab.com/soft/6135.htm
JAVA设计模式
http://download.chinaitlab.com/soft/6112.htm
实用J2EE设计模式~程指南
http://download.chinaitlab.com/soft/5033.htm
Java与模?br />http://download.chinaitlab.com/soft/3073.htm
设计模式Java?br />http://download.chinaitlab.com/soft/1723.htm
JBuilder开发Servlet及JSPQ?br />
_NJBuilder
http://download.chinaitlab.com/soft/10565.htm
JBuilder速成资料
http://download.chinaitlab.com/soft/9714.htm
Jbuilder7和weblogic7整合开发手
http://download.chinaitlab.com/soft/9664.htm
JBUILDER9 软g开发项目实?br />http://download.chinaitlab.com/soft/9089.htm
JbuilderX开发指?br />http://download.chinaitlab.com/soft/9088.htm
Jbuilder x 指南
http://download.chinaitlab.com/soft/7984.htm
JBuilder4开发h员指?br />http://download.chinaitlab.com/soft/5939.htm
JBuilder7 Weblogic7整和开发培训手?br />http://download.chinaitlab.com/soft/4727.htm
JBuilder开发数据库应用E序
http://download.chinaitlab.com/soft/1701.htm
Java开发指?-Servlets和JSP?br />http://download.chinaitlab.com/soft/9793.htm
Java Servlets ~程指南
http://download.chinaitlab.com/soft/9098.htm
Oreilly Java Servlet
http://download.chinaitlab.com/soft/6522.htm
Java Servlet开发与实例
http://download.chinaitlab.com/soft/6029.htm
深入Java Servlet |络~程
http://download.chinaitlab.com/soft/9783.htm
用JSP_Servlet构徏三层式管理信息系l?br />http://download.chinaitlab.com/soft/6034.htm
Java Servlet帮助文档
http://download.chinaitlab.com/soft/2981.htm
JSP|站~程教程
http://download.chinaitlab.com/soft/11256.htm
JSP语法分析
http://download.chinaitlab.com/soft/11257.htm
JSP实用教程
http://download.chinaitlab.com/soft/10792.htm
JSP语法Q?Q?-HTML注释
http://download.chinaitlab.com/soft/10790.htm
JSP应用开发详?br />http://download.chinaitlab.com/soft/10025.htm
JSP技术揭U?br />http://download.chinaitlab.com/soft/9387.htm
JSP技术大?br />http://download.chinaitlab.com/soft/9388.htm
JSP|上书店实例详解
http://download.chinaitlab.com/soft/9386.htm
JSP动态网|技?br />http://download.chinaitlab.com/soft/8920.htm
JSP 技术大?br />http://download.chinaitlab.com/soft/7782.htm
JSP高开发与应用
http://download.chinaitlab.com/soft/7633.htm
JSP 完全探烦
http://download.chinaitlab.com/soft/7546.htm
JSP 高开发与应用
http://download.chinaitlab.com/soft/7116.htm
JSP~程技?br />http://download.chinaitlab.com/soft/7114.htm
JSP速成教程
http://download.chinaitlab.com/soft/6882.htm
JSP|络~程技?br />http://download.chinaitlab.com/soft/6880.htm
JSPE序设计指南
http://download.chinaitlab.com/soft/6690.htm
最新JSP入门与应?br />http://download.chinaitlab.com/soft/6697.htm
JSP快速入?br />http://download.chinaitlab.com/soft/6636.htm
JSP|页~程
http://download.chinaitlab.com/soft/6527.htm
JSP 实用教程
http://download.chinaitlab.com/soft/6334.htm
JSP入门与提?br />http://download.chinaitlab.com/soft/6326.htm
JSP语法
http://download.chinaitlab.com/soft/6116.htm
掌握自定义JSP标签
http://download.chinaitlab.com/soft/6096.htm
JSP 动态网站技术入门与提高
http://download.chinaitlab.com/soft/6019.htm
JSP实例入门
http://download.chinaitlab.com/soft/4377.htm
JSP教程之与数据库通信
http://download.chinaitlab.com/soft/3673.htm
如何成ؓ优秀的JSP E序?br />http://download.chinaitlab.com/soft/3002.htm
JSP数据库编E指?br />http://download.chinaitlab.com/soft/2946.htm
JSP 高~程
http://download.chinaitlab.com/soft/2635.htm
JSP实用~程实例集锦
http://download.chinaitlab.com/soft/2154.htm
JSPE序设计_ֽ实例
http://download.chinaitlab.com/soft/2151.htm
JSPx应用
http://download.chinaitlab.com/soft/1547.htm
JSPE序设计_ֽ实例
http://download.chinaitlab.com/soft/1543.htm
JSP实用~程实例集锦
http://download.chinaitlab.com/soft/1537.htm
JSP基础
http://download.chinaitlab.com/soft/894.htm
Eclipse开发Servlet及JSPQ?br />
Eclipse+Tomcat集成开发servle
http://download.chinaitlab.com/soft/6134.htm
J2EE Jboss Ejb With Eclipse 2003
http://download.chinaitlab.com/soft/6045.htm
]]>
<servlet>
<servlet-name>jsp</servlet-name>
<servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
<init-param>
<param-name>fork</param-name>
<param-value>false</param-value>
</init-param>
<init-param>
<param-name>xpoweredBy</param-name>
<param-value>false</param-value>
</init-param>
<load-on-startup>3</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>jsp</servlet-name>
<url-pattern>*.jsm</url-pattern>
</servlet-mapping>
1?安装Tomcat
参考Tomcat for window 的安装向|基本直接安装卛_Q注意:安装时会
提示输入理用户名和密码Q这是以后会用到的用户名和密码,切记?br />
2?MySqL的JDBC驱动复制?Tomcat%\Common\lib目录下?br />
3?安装MySqlQ默认安装即可?/p>
4?使用Tomcat的Web理应用配置数据?/p>
启动Tomcat服务器,打开览器,输入http://localhost:8080/admin/Q其?br />localhost可能是一台机器的IP或是服务器名UͼQ进入管理界面的登陆?br />面,q时候请输入原来安装时要求输入的用户名和密码Q登陆到理?br />面,选择ResourcesQData sourcesq入配置数据源界面,选择Data Source
Actions Q?gt;选择Create New Data Source,q入配置详细信息界面Q内容如
下:
JNDI Name: jdbc/mysql
Data Source URL: jdbc:mysql://localhost/dbname
JDBC Driver Class: com.mysql.jdbc.Driver
User Name: root
Password: ********
Max. Active Connections: 4
Max. Idle Connections: 2
Max. Wait for Connection: 500
Validation Query:
要求输入的JNDI Name{信息,其中除了JDBC DriverClass之外Q其他的可以Ҏ你的需要填写。比如Data Source URL的内容可能是Qjdbc:mysql:// IP或是名称/DataBaseNameQ其中DataBaseName是你的数据库名称QIP是你的数据库的所在的服务器的IP或是名称。最后点击SaveQ?gt;Commit Change.q样你的数据源的基本资料配置一半了?br />
4、改写Server.xml文g。该文g位于%Tomcat%\conf目录下,用记事本打开q在</host>之前加入下面的配|?br />
<Context path = "/webappname">
<ResourceLink name = "jdbc/mysql" global = "jdbc/mysql"
type = javax.sql.DataSourcer"/>
</Context>
webappname即你的web目录?br />
5、保存,q将Tomcat的服务Stop and Start卛_?br />
下面是我的测试代码: