Developing Web Applications With Ant by Richard Hightower - HTML preview

PLEASE NOTE: This is an HTML preview only and some elements such as links or page numbers may be incorrect.
Download the book in PDF, ePub, Kindle for a complete version.

The Web Application Project Directory Structure

We build these files into a Web application:

 

Web application root directory

| build.xml
|
+---JSP
| HelloWorld.jsp
| HelloApplet.jsp
|
+---src
| \---xptoolkit
| \---web
| HelloWorldServlet.java
|
+---HTML
| index.html
|
\---meta-data

web.xml

Notice that the Web application project includes only six files. There are four subdirectories: JSP, src, HTML, and meta-data, and the root directory holds the build.xml file. The JSP directory contains two JSPs: HelloWorld.jsp and HelloApplet.jsp. Under the src directory is the Java source for the servlet xptoolkit.web.HelloWorldServlet.java. The web.xml file under the meta-data directory holds the deployment file for this Web application.