Eclipse Web Tools Platform: Developing Java Web Applications by Naci Dai, Lawrence Mandel, Arthur Ryman
Purchase From
more options...
  • Amazon.com
  • Barnes & Noble
  • Chapters/Indigo
  • Safari Books Online

Source Code Examples

Download the source code examples:
(Last updated July 24, 2007)

examples v1.1 (md5, sha1)

Licensed under the EPL v1.0

Source code examples are the lifeblood of programming books. We have taken great care to ensure that all source code listings actually work. In fact, the source code listings are automatically generated from working source code files as part of the book production process.

As you go through the programming iterations in this book, you will be asked to create files and write code at various steps. By all means, do this. You should try your hand at implementing the examples. However, before you go on to the next step, you should import the working example code that is provided.

The examples are organized by chapter, iteration, and Eclipse project. For example, the examples for Chapter 3, Iteration 1, in the project Web1 are located in the directory:

examples/ch03/iteration1/Web1

The directory layout of each example exactly matches that of the corresponding project so you can simply Import the file. For example, to import the example hello-world.jsp file into the Web- Content directory of the Web1, do the following:

  1. Select the Web1 project in the workspace and execute the Import command. Select File System from the General category as the source of the import.

  2. Select the directory:

    examples/ch03/iteration1/Web1
    as the source of the import.

  3. Select the file:

    WebContent/hello-world.jsp
    as the file to import. The file hello-world.jsp will then get correclty imported to the Web- Content directory of the Web1 project.