Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Apress
committed
Sep 24, 2016
0 parents
commit 96712ef
Showing
9 changed files
with
153 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<ul> | ||
<li>Chapter 1: JSP Foundations | ||
<li>Chapter 2: Using JSP | ||
<li>Chapter 3: Role Separation with JavaBeans | ||
<li>Chapter 4: Role Separation with Custom Tags | ||
<li>Chapter 5: Development Using Patterns | ||
<li>Chapter 6: The Decorating Filter Pattern | ||
<li>Chapter 7: The Front Controller Pattern | ||
<li>Chapter 8: The View-Helper Pattern | ||
<li>Chapter 9: Testing Techniques | ||
<li>Chapter 10: Deployment Techniques | ||
<li>Chapter 11: Application Frameworks | ||
<li>Chapter 12: Putting it all Together | ||
</ul> |
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
<p>Chapter 1<br> | ||
<br> | ||
Page 17:<br> | ||
<br> | ||
Correction: Code snippet from server.xml file should be as follows:<br> | ||
<br> | ||
<Context path="jspBook" docBase="/jspBook" debug="0"/><br> | ||
<br> | ||
Page 18:<br> | ||
<br> | ||
Note: Be sure to run mysqld prior to running the mysql command to create <br> | ||
the tables in your database.<br> | ||
<br> | ||
Page 19:<br> | ||
<br> | ||
Note: You may wish to use the new Connector-J JDBC driver from www.mysql.com. <br> | ||
Unzip the downloaded file and place the mysql-connector-java-2.0.14-bin.jar file <br> | ||
in your classpath (your server classpath). To obtain a connection use the <br> | ||
following code:<br> | ||
<br> | ||
Class.forName("com.mysql.jdbc.Driver").newInstance();<br> | ||
<br> | ||
Chapter 2<br> | ||
<br> | ||
Page 45:<br> | ||
<br> | ||
Note: Some readers have reported trouble running the session example listed on <br> | ||
this page. I suspect that they are trying to run the example starting with a page <br> | ||
other than simpleSessionExample.html (perhaps the simpleSessionExample.jsp page).<br> | ||
<br> | ||
Chapter 3<br> | ||
<br> | ||
Page 49:<br> | ||
<br> | ||
Correction: All references to 'simpleBean' should in fact be 'SimpleBean'. The <br> | ||
case was changed early on during development of the book and a few references to <br> | ||
the old name remained after editing. The source code is named 'simpleBean.java' <br> | ||
and should be changed to 'SimpleBean.java' (as well as the class name itself). <br> | ||
This will eliminate any further confusion. The same changes can be made to the <br> | ||
'productBean.java' file.<br> | ||
<br> | ||
Page 70 (CustomerBean.java):<br> | ||
<br> | ||
Note: It would be a good idea to actually clear all of the JavaBean's attributes <br> | ||
prior to loading a new set of data. This could be accomplished by moving the <br> | ||
initialization code out of the constructor and placing it in a separate method <br> | ||
called initFields(). You could then call this method from both the constructor <br> | ||
and the loadCustomer() methods.<br> | ||
<br> | ||
Page 79:<br> | ||
<br> | ||
Correction: Each of the <option> tags are missing a closing bracket. Each tag <br> | ||
should be something like this (the source code downloaded from the website is correct):<br> | ||
<br> | ||
<select name="spouse"><br> | ||
<option value="true" <%= (custBean.getField("spouse", <br> | ||
FIELD_VALUE).equals("true")) ? "selected" : "" %>>Y</option><br> | ||
<option value="false" <%= (custBean.getField("spouse", <br> | ||
FIELD_VALUE).equals("false")) ? "selected" : "" %>>N</option><br> | ||
</select><br> | ||
<br> | ||
Chapter 4<br> | ||
<br> | ||
Note: The case of several source files begin with a lowercase letter. These <br> | ||
should each be changed to begin with an uppercase letter. The source file names <br> | ||
as well as the class names themselves need to be modified. For example:<br> | ||
<br> | ||
groceryOrder.java --> GroceryOrder.java<br> | ||
groceryItem.java --> GroceryItem.java<br> | ||
simpleTag.java --> SimpleTag.java<br> | ||
<br> | ||
Page 97:<br> | ||
<br> | ||
Note: The example showing how to nest tags does not work with Tomcat 4.x. The <br> | ||
code is written correctly to the JSP specifications and actually worked just <br> | ||
fine with previous versions of Tomcat. With the newer releases of Tomcat, the <br> | ||
nested tag example does not work correctly.<br> | ||
<br> | ||
Chapter 5<br> | ||
<br> | ||
Page 112:<br> | ||
<br> | ||
Note: Remember to start the mysqld program before attempting to work with the database.</p> |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Freeware License, some rights reserved | ||
|
||
Copyright (c) 2002 Andrew Patzer | ||
|
||
Permission is hereby granted, free of charge, to anyone obtaining a copy | ||
of this software and associated documentation files (the "Software"), | ||
to work with the Software within the limits of freeware distribution and fair use. | ||
This includes the rights to use, copy, and modify the Software for personal use. | ||
Users are also allowed and encouraged to submit corrections and modifications | ||
to the Software for the benefit of other users. | ||
|
||
It is not allowed to reuse, modify, or redistribute the Software for | ||
commercial use in any way, or for a user�s educational materials such as books | ||
or blog articles without prior permission from the copyright holder. | ||
|
||
The above copyright notice and this permission notice need to be included | ||
in all copies or substantial portions of the software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS OR APRESS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#Apress Source Code | ||
|
||
This repository accompanies [*JSP Examples and Best Practices*](http://www.apress.com/9781590590201) by Andrew Patzer (Apress, 2002). | ||
|
||
![Cover image](9781590590201.jpg) | ||
|
||
Download the files as a zip using the green button, or clone the repository to your machine using Git. | ||
|
||
##Releases | ||
|
||
Release v1.0 corresponds to the code in the published book, without corrections or updates. | ||
|
||
##Contributions | ||
|
||
See the file Contributing.md for more information on how you can contribute to this repository. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Contributing to Apress Source Code | ||
|
||
Copyright for Apress source code belongs to the author(s). However, under fair use you are encouraged to fork and contribute minor corrections and updates for the benefit of the author(s) and other readers. | ||
|
||
## How to Contribute | ||
|
||
1. Make sure you have a GitHub account. | ||
2. Fork the repository for the relevant book. | ||
3. Create a new branch on which to make your change, e.g. | ||
`git checkout -b my_code_contribution` | ||
4. Commit your change. Include a commit message describing the correction. Please note that if your commit message is not clear, the correction will not be accepted. | ||
5. Submit a pull request. | ||
|
||
Thank you for your contribution! |