About the web application directory structure
59
Enterprise applications conform to a similar directory structure as web applications. The
application root directory, web_app, is often the EAR filename. The enterprise
application deployment descriptor, application.xml, is located in the
jrun_root/servers/jrun_server/web_app/META-INF directory.
Your web application is not limited to the directories and subdirectories listed above. You
can add directories to the application for items such as Flash SWF files, HTML files,
images, and other application resources. These directories constitute the public
document tree for the web application for resources accessed directly by a client. For
more information on adding directories to the application, see
“Adding directories” on
page 62
.
The deployment descriptor (web.xml)
A web application is defined by the contents of the WEB-INF/web.xml file, which is also
called the deployment descriptor. A
deployment descriptor
is an XML file that contains
configuration information used by the application for execution on an application server.
The Java Servlet specification defines the contents of web.xml, so it is not specific to
JRun. All platforms that support J2EE-compliant web applications, recognize and
interpret the contents of a web.xml file.
You use the web.xml file to define the following types of configuration and deployment
information for a web application:
•
Servlet initialization parameters
•
Session configuration
•
Servlet and JSP definitions
•
Servlet and JSP URL mappings
•
MIME-type mappings
•
Welcome file list
•
Error pages
•
Filters
•
Event handlers
•
Tag libraries
•
Security information
•
Resources, such as data sources and JMS connection factories
In addition to containing information about a web application, a web.xml file can also
contain reference information about EJBs accessed by the web application. The standard
deployment descriptors for web applications and EJBs have common elements for
environment entries, EJB references, resource references, and security roles.
WEB-INF/jsp
Contains the files generated by JRun when translating a JSP.
WEB-INF/sessions
Contains serialized JRun sessions used by the default session
persistence mechanism.
Directory
Description
Содержание 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...