58
Chapter 6 Developing Web Applications
About the web application directory structure
The following figure shows the directory structure of a web application:
The application root directory, web_app in the figure, functions as the document root for
serving application files. The web_app directory is often the WAR filename. This
directory includes JSPs and HTML pages that you develop as part of a web application.
For example, for a web application located at jrun_root/servers/jrun_server/web_app, the
default welcome file is typically located at
jrun_root/servers/jrun_server/web_app/index.html. jrun_server is the directory name of a
JRun server and web_app is the name of a directory corresponding to the name of a web
application hosted by the server.
Web applications must conform to the following directory structure:
Directory
Description
Web_app
Contains the WEB-INF directory and all files that must be
accessible to the client request, such as JSPs, HTML pages,
cascading style sheets, images, and JavaScript files. You can place
these files directly in the web application root directory or in
subdirectories that do not use the reserved name WEB-INF.
WEB-INF
(Required) Contains the classes and lib directories, the standard
web application deployment descriptor (web.xml), and possibly a
JRun-specific deployment descriptor (jrun-web.xml).
This directory is not part of the public document tree of the
application; that is, you cannot directly serve any file contained in
this directory, or any of its subdirectories, to a client.
WEB-INF/classes
Contains servlets, other Java classes, and associated resources that
are not packaged in Java ARchive (JAR) files.
WEB-INF/lib
Contains servlets, other Java classes, and associated resources that
are contained within JAR or ZIP files. This subdirectory includes any
JAR files that contain tag libraries.
Содержание 38000382 - Macromedia JRun - Mac
Страница 1: ...Getting Started with JRun...
Страница 16: ......
Страница 68: ...54 Chapter 5 Introduction to EJB...
Страница 82: ......
Страница 110: ...96 Lesson 3 EJB Tutorial...
Страница 128: ...114 Lesson 4 Web Services Tutorial...
Страница 132: ...118 Index...