Chapter 4: Web Applications  Contents of a Web application

Chapter 4: Web Applications

What is a Web application?

A Web application is a unit of deployment for interrelated Web content, JavaServer Pages (JSPs), and Java servlets. The Web application contains static files, servlet and JSP implementation classes, and a deployment descriptor that describes how the files, servlets, and JSPs are configured on the host server. The deployment descriptor also allows you to configure application-specific HTTP properties, such as MIME types and per-file security constraints. To tie it all together, a Web application provides an abstract naming convention for the JNDI names of database connections and EJBs.

A Web application represents a subset of the files available on a Web server. Each Web application has a root request path that forms a prefix for URLs that access the JSPs, servlets, and static pages; for example, http://myhost/Finance. Each Web application also has a context root, which is a directory in the server’s file system where the Web application’s files are deployed. In EAServer, the context root for Web application wapp is this directory in your EAServer installation:

$JAGUAR/Repository/WebApplication/wapp




Copyright © 2005. Sybase Inc. All rights reserved. Contents of a Web application