O'Reilly logo

Sams Teach Yourself JavaServer Pages™ 2.0 with Apache Tomcat in 24 Hours by Kunal Mittal, Alan Moffet, Mark Wutka

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix B Packaging a Web Application

Throughout the book, you’ve packaged your application (JSPs, servlets, and other files) into a single file, called a WAR file (web archive). The WAR file serves two main purposes. First, it provides a convenient way to package all your files together, making it easy to copy an application from one machine to another. Second, it provides a configuration file that defines any configuration parameters for the Web application. In this appendix, you’ll spend a little more time becoming acquainted with WAR files and configuration files—in particular those items that are new with the 2.4 Servlet and 2.0 JavaServer Pages specifications.

A Simple WAR File Example

When you create a WAR file, you must include ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required