Web Application Deployment

In the previous section, I mentioned the WEB-INF subdirectory. This is just one of several required components of a working JSP application. In this section, you’ll learn what JSP expects to see and where it expects to see it.

Figure 5.4 shows a typical directory structure in JSP. At the top level is a directory, typically called webapps, which is the parent directory to all the applications installed on the JSP server. Beneath it are a number of subdirectories, each of which corresponds to a specific application. In this figure, only one subdirectory (app2) has been fully expanded; the others have been shaded out for space.

Figure 5.4. A typical JSP deployment structure.

Under the app2 directory, you find the ...

Get Struts Kick Start now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.