Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Apress committed Oct 7, 2016
0 parents commit ad4a41f
Show file tree
Hide file tree
Showing 1,017 changed files with 126,985 additions and 0 deletions.
Binary file added 2933.pdf
Binary file not shown.
Binary file added 2934.pdf
Binary file not shown.
89 changes: 89 additions & 0 deletions 3244.html
@@ -0,0 +1,89 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="generator" content="HTML Tidy for Mac OS X (vers 1st December 2004), see www.w3.org" />

<title>Pro Ajax and Java Frameworks</title>
</head>

<body>
<h1>Errata Request</h1>

<table>
<tbody>
<tr>
<th>Submitter Name</th>

<th>Submission Date</th>

<th>Errata</th>

<th>Correction</th>
</tr>

<tr>
<td>Verre Christophe</td>

<td>2006-10-22</td>

<td>page 14, first point</td>

<td>the "d" in the code listing should be id</td>
</tr>

<tr>
<td>Verre Christophe</td>

<td>2006-10-22</td>

<td>page 15, 5th point</td>

<td>No correction.</td>
</tr>

<tr>
<td>Verre Christophe</td>

<td>2006-10-24</td>

<td>page 62, Listing 2-8</td>

<td>After the "Testing Echoing Login ID" line, add a closed tr tag: &lt;/tr></td>
</tr>

<tr>
<td>Verre Christophe</td>

<td>2006-10-24</td>

<td>page 63, third line</td>

<td>into the DOM element whose id attribute is loginId</td>
</tr>

<tr>
<td>Verre Christophe</td>

<td>2006-10-24</td>

<td>page 65, Listing 2-11</td>

<td>After the "Testing Echoing Login ID" line, add a closed tr tag: &lt;/tr></td>
</tr>

<tr>
<td>Verre Christophe</td>

<td>2006-10-24</td>

<td>page 68, 2nd paragraph, 2nd line from bottom</td>

<td>Extra "the" should read: Click Install to start downloading the extension.</td>
</tr>

</tbody>
</table>
</body>
</html>
Binary file added 9781590596777.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) 2006 Nathaniel Schutta and Ryan Asleson

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 [*Pro Ajax and Java Frameworks*](http://www.apress.com/9781590596777) by Nathaniel Schutta and Ryan Asleson (Apress, 2006).

![Cover image](9781590596777.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!
43 changes: 43 additions & 0 deletions pro-ajax-and-java-examples/README.txt
@@ -0,0 +1,43 @@



================================================================================
EXAMPLES FROM "PRO AJAX AND JAVA"
================================================================================

Last Updated: 29 June 2006


Thank you for your interest in "Pro Ajax and Java." We hope you find the book
and these examples useful tools for learning Ajax and its related techniques.

Included in this download is the source code for the examples from the book.
The examples can be run in any J2EE 1.4 servlet container like Jakarta Tomcat.
All of the pre-built WAR files were compiled against JDK 1.5, thus JDK 1.5 or
newer is required to run them.

The source code is divided by chapter. Inside of each chapter folder is a
directory named "dist." Within the dist directory is the pre-built WAR file
that can be deployed to Tomcat or other servlet container. Each chapter folder
also contains a build.xml file from which the WAR file can be built using Ant.
Use the dist target to compile the sources and build the WAR file:

> ant dist

Each chapter WAR file has an index file that points to the individual examples
within that chapter. Access the index file using a URL similar to the
following, making sure to use the desired chapter number and the correct
port number for your servlet container:

http://localhost/chapter02/

Users of the NetBeans IDE will notice that each chapter folder contains a
directory named nbproject, making each chapter folder a native NetBeans project.
Each chapter folder can be opened in the NetBeans IDE version 5.0 or newer.

You may contact us via email at proajaxandjava@gmail.com with any questions
regarding the source code.

Thank you and good luck!


33 changes: 33 additions & 0 deletions pro-ajax-and-java-examples/build.xml
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>

<project name="Examples from Pro Ajax and Java" basedir="." default="dist">
<description>Builds the source distribution for the examples in Pro Ajax and Java.</description>

<target name="dist">
<property name="zip-file-name" value="${basedir}/../1590596773-1.zip"/>

<!-- build the subprojects -->
<ant antfile="build.xml" dir="chapter02" target="dist"/>
<ant antfile="build.xml" dir="chapter03" target="dist"/>
<ant antfile="build.xml" dir="chapter04" target="dist"/>
<ant antfile="build.xml" dir="chapter05" target="dist"/>
<ant antfile="build.xml" dir="chapter06" target="dist"/>
<ant antfile="build.xml" dir="chapter07" target="dist"/>
<ant antfile="build.xml" dir="chapter08" target="dist"/>
<ant antfile="build.xml" dir="tapestry-forms" target="dist"/>
<ant antfile="build.xml" dir="tapestry-hello" target="dist"/>
<ant antfile="build.xml" dir="tapestry-link" target="dist"/>
<ant antfile="build.xml" dir="tapestry-tacos" target="dist"/>

<!-- delete the previous one -->
<delete file="${zip-file-name}"/>

<!-- build the zip file with source code, war files, etc -->
<zip destfile="${zip-file-name}">
<zipfileset dir=".."
excludes="**/build/**, **/nbproject/private/**, **/*~"/>
</zip>

</target>

</project>
85 changes: 85 additions & 0 deletions pro-ajax-and-java-examples/chapter02/build.xml
@@ -0,0 +1,85 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- You may freely edit this file. See commented blocks below for -->
<!-- some examples of how to customize the build. -->
<!-- (If you delete it and reopen the project it will be recreated.) -->
<project name="chapter02" default="default" basedir=".">
<description>Builds, tests, and runs the project chapter02.</description>
<import file="nbproject/build-impl.xml"/>

<property name="js.dir" value="${basedir}/web/js"/>
<property name="js.compress" value="uncompressed-javascript.js"/>
<property name="js.compress.output" value="compressed-javascript.js"/>

<target name="compress-javascript">
<java jar="${basedir}/lib/custom_rhino.jar" fork="true" output="${js.dir}/${js.compress.output}">
<arg value="-c" />
<arg value="${js.dir}/${js.compress}" />
</java>
</target>

<target name="dojo-compress-javascript">
<java jar="${basedir}/lib/custom_rhino.jar"
fork="true" output="compressed-javascript.js">
<arg value="-c" />
<arg value="uncompressed-javascript" />
</java>
</target>


<!--
There exist several targets which are by default empty and which can be
used for execution of your tasks. These targets are usually executed
before and after some main targets. They are:
-pre-init: called before initialization of project properties
-post-init: called after initialization of project properties
-pre-compile: called before javac compilation
-post-compile: called after javac compilation
-pre-compile-single: called before javac compilation of single file
-post-compile-single: called after javac compilation of single file
-pre-compile-test: called before javac compilation of JUnit tests
-post-compile-test: called after javac compilation of JUnit tests
-pre-compile-test-single: called before javac compilation of single JUnit test
-post-compile-test-single: called after javac compilation of single JUunit test
-pre-dist: called before jar building
-post-dist: called after jar building
-post-clean: called after cleaning build products
Example of pluging an obfuscator after the compilation could look like
<target name="post-compile">
<obfuscate>
<fileset dir="${build.classes.dir}"/>
</obfuscate>
</target>
For list of available properties check the imported
nbproject/build-impl.xml file.
Other way how to customize the build is by overriding existing main targets.
The target of interest are:
init-macrodef-javac: defines macro for javac compilation
init-macrodef-junit: defines macro for junit execution
init-macrodef-debug: defines macro for class debugging
do-dist: jar archive building
run: execution of project
javadoc-build: javadoc generation
Example of overriding the target for project execution could look like
<target name="run" depends="<PROJNAME>-impl.jar">
<exec dir="bin" executable="launcher.exe">
<arg file="${dist.jar}"/>
</exec>
</target>
Notice that overridden target depends on jar target and not only on
compile target as regular run target does. Again, for list of available
properties which you can use check the target you are overriding in
nbproject/build-impl.xml file.
-->
</project>
Binary file not shown.
Binary file not shown.

0 comments on commit ad4a41f

Please sign in to comment.