首页
» Java源码
|
|
|
Java源码 |
|
|
| the JavaServer Pages, 3rd Edition |
| 简 介: |
This package contains all JSP application examples and the source
code for all Java classes described in the book JavaServer Pages, 3rd
Edition (O'Reilly) by Hans Bergsten. Please see the Release Notes in
the same directory as this file for the latest news about the current
version.
The examples are located in the "ora" directory in a format supported
by most Servlet 2.2 (or later) compliant containers (the Web Application
Archive structure as an open file system structure). For the Tomcat 5
container, all you have to do to install it is to copy the directory under
Tomcat's "webapps" directory and restart the server.
The "ora/WEB-INF/web.xml" file contains a number of different configuration
settings for the database examples, see the book for details. The default
settings are for a MySQL database named "test", using the MM JDBC driver
available at http://mmmysql.sourceforge.net/. You need to modify these
settings to fit your JDBC driver and database and create the database tables
described in the book. The "ora/WEB-INF" directory contains a file named
"examples.sql" that contains the SQL statements for creating the tables used
in the book. They have beem tested with MySQL but you may need to adjust
them to the SQL syntax supported by your database.
The "src" directory contains all source code for the Java classes (beans,
custom action tag handlers, servlets, etc.) used in the examples.
It also includes an Ant 1.5 build.xml file for building all example source
code and package all tag library classes and the TLD in one JAR file, all
servlet and generic database classes in another JAR, and the few servlet
intro classes and the JspSourceServlet classes in a "classes" directory.
Ant is a very powerful build tool that I really recommend. You can download
and read more about it at http://jakarta.apache.org/ant/. |
| 推荐等级: |
1 |
| 文件大小: |
|
| 下载次数: |
862 |
| 发布人: |
|
| 发布日期: |
2005-08-21 |
| 下载地址: |
|
|
|
|
|
|
|