About the Examples

Java Servlet Programming, 2nd Edition > Preface > About the Examples

 
< BACKCONTINUE >

In this book you'll find more than a hundred servlet examples. The code for these servlets is all contained within the text, but you may prefer to download the examples rather than type them in by hand. You can find the code online and packaged for download at http://www.oreilly.com/catalog/jservlet2. You can also see many of the servlets in action at http://www.servlets.com.

All the examples have been tested using the Apache Tomcat 3.2 server running in standalone mode, using the Java Virtual Machine (JVM) bundled with the Java Development Kit (JDK) 1.1.8 and 1.2.2, on both Windows and Unix. A few advanced examples require features that Tomcat does not support in standalone mode; in these cases the examples were tested against various other servers as noted in the text. The Apache Tomcat server is the official Servlet API reference implementation, available for free under an open source license from http://jakarta.apache.org.

This book also contains a set of utility classes they are used by the servlet examples, and you may find them helpful for your own general-purpose servlet development. These classes are contained in the com.oreilly.servlet package. Among other things, there are classes to help servlets parse parameters, handle file uploads, generate multipart responses (server push), negotiate locales for internationalization, return files, manage socket connections, and act as RMI servers, as well as a class to help applets communicate with servlets. Since the first edition, there are also new classes to help servlets send email messages, cache responses, and autodetect servlet API support. The source code for most of the com.oreilly.servlet package is contained within the text; and the complete latest version is also available online (with javadoc documentation) for download from http://www.servlets.com.[1]

[1] This book does not come with a CD-ROM. Bundling a CD-ROM increases the cost of production and the cost to you. It's our belief anyone reading this book has access to an Internet connection, and you'd rather save your money and simply download the example code off the Web. Plus, we don't see much point in bundling evaluation copies of the various web and application servers. Considering the breakneck pace of innovation in the servlet market, the bundled servers would be obsolete before the book went to press. The same evaluation versions are available online, and we recommend you download the latest releases yourself. Just remember, if you plan to read the book offline, you might want to download the example code and a copy of the Apache Tomcat web server the next chance you get. The download links are at http://www.servlets.com.


Last updated on 3/20/2003
Java Servlet Programming, 2nd Edition, © 2001 O'Reilly

< BACKCONTINUE >


Java servlet programming
Java Servlet Programming (Java Series)
ISBN: 0596000405
EAN: 2147483647
Year: 2000
Pages: 223

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net