Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Apress committed Sep 24, 2016
0 parents commit 96712ef
Show file tree
Hide file tree
Showing 9 changed files with 153 additions and 0 deletions.
14 changes: 14 additions & 0 deletions 246.html
@@ -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 added 324.zip
Binary file not shown.
Binary file added 355.pdf
Binary file not shown.
Binary file added 356.pdf
Binary file not shown.
83 changes: 83 additions & 0 deletions 790.html
@@ -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>
&lt;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&nbsp;<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.&nbsp;<br>
Unzip the downloaded file and place the mysql-connector-java-2.0.14-bin.jar file&nbsp;<br>
in your classpath (your server classpath). To obtain a connection use the&nbsp;<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&nbsp;<br>
this page. I suspect that they are trying to run the example starting with a page&nbsp;<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&nbsp;<br>
case was changed early on during development of the book and a few references to&nbsp;<br>
the old name remained after editing. The source code is named 'simpleBean.java'&nbsp;<br>
and should be changed to 'SimpleBean.java' (as well as the class name itself).&nbsp;<br>
This will eliminate any further confusion. The same changes can be made to the&nbsp;<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&nbsp;<br>
prior to loading a new set of data. This could be accomplished by moving the&nbsp;<br>
initialization code out of the constructor and placing it in a separate method&nbsp;<br>
called initFields(). You could then call this method from both the constructor&nbsp;<br>
and the loadCustomer() methods.<br>
<br>
Page 79:<br>
<br>
Correction: Each of the &lt;option> tags are missing a closing bracket. Each tag&nbsp;<br>
should be something like this (the source code downloaded from the website is correct):<br>
<br>
&lt;select name="spouse"><br>
&lt;option value="true" &lt;%= (custBean.getField("spouse",&nbsp;<br>
FIELD_VALUE).equals("true")) ? "selected" : "" %>>Y&lt;/option><br>
&lt;option value="false" &lt;%= (custBean.getField("spouse",&nbsp;<br>
FIELD_VALUE).equals("false")) ? "selected" : "" %>>N&lt;/option><br>
&lt;/select><br>
<br>
Chapter 4<br>
<br>
Note: The case of several source files begin with a lowercase letter. These&nbsp;<br>
should each be changed to begin with an uppercase letter. The source file names&nbsp;<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&nbsp;<br>
code is written correctly to the JSP specifications and actually worked just&nbsp;<br>
fine with previous versions of Tomcat. With the newer releases of Tomcat, the&nbsp;<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>
Binary file added 9781590590201.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions LICENSE.txt
@@ -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.


15 changes: 15 additions & 0 deletions README.md
@@ -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.
14 changes: 14 additions & 0 deletions contributing.md
@@ -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!

0 comments on commit 96712ef

Please sign in to comment.