Web Applications

Web applications are, as the name implies, applications run on a Web server. A Web application is simply a set of static HTML pages, servlets, support classes, applets, JavaBeans, and any other resources that are bundled together to form a complete application. The J2EE RI deploytool packages Web applications for you and stores them in a Web Archive Format (WAR) file so they can be easily distributed to Web servers. You can manually create WAR files using the J2SE jar utility, or you can use custom ant (or asant) build files to automate the process.

Web Application Files and Directory Structure

The Java servlet specification defines a structured hierarchy of directories that are used for deployment and packaging purposes. Using ...

Get Sams Teach Yourself J2EE™ in 21 Days, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.