| 1 | <html><head><META http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><title>Application Developer's Guide - Introduction</title><meta value="Craig R. McClanahan" name="author"><meta value="craigmcc@apache.org" name="email"></head><body vlink="#525D76" alink="#525D76" link="#525D76" text="#000000" bgcolor="#ffffff"><table cellspacing="0" width="100%" border="0"><!--PAGE HEADER--><tr><td><!--PROJECT LOGO--><a href="http://tomcat.apache.org/"><img border="0" alt=" | 
|---|
| 2 |       The Apache Tomcat Servlet/JSP Container | 
|---|
| 3 |     " align="right" src="../images/tomcat.gif"></a></td><td><font face="arial,helvetica,sanserif"><h1>Apache Tomcat 6.0</h1></font></td><td><!--APACHE LOGO--><a href="http://www.apache.org/"><img border="0" alt="Apache Logo" align="right" src="../images/asf-logo.gif"></a></td></tr></table><table cellspacing="4" width="100%" border="0"><!--HEADER SEPARATOR--><tr><td colspan="2"><hr size="1" noshade></td></tr><tr><!--LEFT SIDE NAVIGATION--><td nowrap="true" valign="top" width="20%"><p><strong>Links</strong></p><ul><li><a href="../index.html">Docs Home</a></li></ul><p><strong>Contents</strong></p><ul><li><a href="index.html">Contents</a></li><li><a href="introduction.html">Introduction</a></li><li><a href="installation.html">Installation</a></li><li><a href="deployment.html">Deployment</a></li><li><a href="source.html">Source Code</a></li><li><a href="processes.html">Processes</a></li><li><a href="sample/">Example App</a></li></ul></td><!--RIGHT SIDE MAIN BODY--><td align="left" valign="top" width="80%"><table cellspacing="4" width="100%" border="0"><tr><td valign="top" align="left"><h1>Application Developer's Guide</h1><h2>Introduction</h2></td><td nowrap="true" valign="top" align="right"><small><a href="printer/introduction.html"><img alt="Printer Friendly Version" border="0" src="../images/printer.gif"><br>print-friendly<br>version | 
|---|
| 4 |                     </a></small></td></tr></table><table cellpadding="2" cellspacing="0" border="0"><tr><td bgcolor="#525D76"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="Overview"><strong>Overview</strong></a></font></td></tr><tr><td><blockquote> | 
|---|
| 5 |  | 
|---|
| 6 | <p>Congratulations!  You've decided to (or been told to) learn how to | 
|---|
| 7 | build web applications using servlets and JSP pages, and picked the | 
|---|
| 8 | Tomcat server to use for your learning and development.  But now what | 
|---|
| 9 | do you do?</p> | 
|---|
| 10 |  | 
|---|
| 11 | <p>This manual is a primer covering the basic steps of using Tomcat to | 
|---|
| 12 | set up a development environment, organize your source code, and then | 
|---|
| 13 | build and test your application.  It does not discuss architectures or | 
|---|
| 14 | recommended coding practices for web application development, | 
|---|
| 15 | or provide in depth instructions on operating the development | 
|---|
| 16 | tools that are discussed.  References to sources of additional information | 
|---|
| 17 | are included in the following subsections.</p> | 
|---|
| 18 |  | 
|---|
| 19 | <p>The discussion in this manual is aimed at developers who will be using | 
|---|
| 20 | a text editor along with command line tools to develop and debug their | 
|---|
| 21 | applications.  As such, the recommendations are fairly generic -- but you | 
|---|
| 22 | should easily be able to apply them in either a Windows-based or Unix-based | 
|---|
| 23 | development environment.  If you are utilizing an Interactive Development | 
|---|
| 24 | Environment (IDE) tool, you will need to adapt the advice given here to | 
|---|
| 25 | the details of your particular environment.</p> | 
|---|
| 26 |  | 
|---|
| 27 | </blockquote></td></tr></table><table cellpadding="2" cellspacing="0" border="0"><tr><td bgcolor="#525D76"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="Links"><strong>Links</strong></a></font></td></tr><tr><td><blockquote> | 
|---|
| 28 |  | 
|---|
| 29 | <p>The following links provide access to selected sources of online | 
|---|
| 30 | information, documentation, and software that is useful in developing | 
|---|
| 31 | web applications with Tomcat.</p> | 
|---|
| 32 | <ul> | 
|---|
| 33 | <li><a href="http://java.sun.com/products/jsp/download.html">http://java.sun.com/products/jsp/download.html</a> - | 
|---|
| 34 |     <i>JavaServer Pages (JSP) Specfication, Version 2.0</i>.  Describes | 
|---|
| 35 |     the programming environment provided by standard implementations | 
|---|
| 36 |     of the JavaServer Pages (JSP) technology.  In conjunction with | 
|---|
| 37 |     the Servlet API Specification (see below), this document describes | 
|---|
| 38 |     what a portable API page is allowed to contain.  Specific | 
|---|
| 39 |     information on scripting (Chapter 6), tag extensions (Chapter 7), | 
|---|
| 40 |     and packaging JSP pages (Appendix A) is useful.  The Javadoc | 
|---|
| 41 |     API Documentation is included in the specification, and with the | 
|---|
| 42 |     Tomcat download.<br><br></li> | 
|---|
| 43 | <li><a href="http://java.sun.com/products/servlet/download.html">http://java.sun.com/products/servlet/download.html</a> - | 
|---|
| 44 |     <i>Servlet API Specification, Version 2.4</i>.  Describes the | 
|---|
| 45 |     programming environment that must be provided by all servlet | 
|---|
| 46 |     containers conforming to this specification.  In particular, you | 
|---|
| 47 |     will need this document to understand the web application | 
|---|
| 48 |     directory structure and deployment file (Chapter 9), methods of | 
|---|
| 49 |     mapping request URIs to servlets (Chapter 11), container managed | 
|---|
| 50 |     security (Chapter 12), and the syntax of the <code>web.xml</code> | 
|---|
| 51 |     Web Application Deployment Descriptor (Chapter 13).  The Javadoc | 
|---|
| 52 |     API Documentation is included in the specification, and with the | 
|---|
| 53 |     Tomcat download.<br><br></li> | 
|---|
| 54 | <li><a href="http://java.sun.com/j2ee/blueprints/">http://java.sun.com/j2ee/blueprints/</a> - | 
|---|
| 55 |     <i>Sun BluePrints (tm) Design Guidelines for J2EE</i>.  Comprehensive | 
|---|
| 56 |     advice and examples on application design for the Java2 Enterprise | 
|---|
| 57 |     Edition (J2EE) platform, which includes servlets and JSP pages.  The | 
|---|
| 58 |     chapters on servlet and JSP design are useful even when your application | 
|---|
| 59 |     does not require other J2EE platform components. | 
|---|
| 60 |     <br><br></li> | 
|---|
| 61 | <li><b>TODO</b> -- Add more entries here!</li> | 
|---|
| 62 | </ul> | 
|---|
| 63 |  | 
|---|
| 64 | </blockquote></td></tr></table></td></tr><!--FOOTER SEPARATOR--><tr><td colspan="2"><hr size="1" noshade></td></tr><!--PAGE FOOTER--><tr><td colspan="2"><div align="center"><font size="-1" color="#525D76"><em> | 
|---|
| 65 |         Copyright © 1999-2008, Apache Software Foundation | 
|---|
| 66 |         </em></font></div></td></tr></table></body></html> | 
|---|