Show TOC Start of Content Area

Process documentation J2EE Web Components Configuration  Locate the document in its SAP Library structure

Purpose

You run into this process once you have developed the Web components and other resources you need for your Web application. The purpose of the process is to provide descriptive configuration information that the Web Container uses at application deployment time, and later at runtime. The deployment descriptors are the means with which you specify this information. The J2EE Engine introduces an additional Web application deployment descriptor (apart from the standard web.xml), called web-j2ee-engine.xml, to enhance the configuration options for Web applications, as well as to reflect some server implementation specifics.

Once you have configured the Web components, you can assemble them into a WAR file. For more information about this, see Building WARs.

Process Flow

To better manage the process of configuring web components, use the integrated SAP NetWeaver Developer Studio. It provides convenient graphical user interface for editing the deployment descriptors, as well as a fast and easy way to navigate and add or remove Web components from your Web application project.

Before you start configuring your Web application, have a look at the Default Configurations of the Web Container and keep them in mind throughout the configuration process.

Setting SAP NetWeaver Developer Studio up for Editing the Deployment Descriptors

To edit the Web application’s deployment descriptors, you must have set up a Web Module project for it. You must have referenced the required Web components in it. For more information about how to set up a Web Module project in SAP NetWeaver Developer Studio, see Creating Web Module Projects.

Within your Web Module project, you have the following two nodes: web.xml and web-j2ee-engine.xml. You open each of them for editing by double-clicking on the corresponding nodes. The editor screens open on the right hand side.

From within the web.xml and web-j2ee-engine.xml screens you can perform the following actions:

·        Specifying Web Application Display Information

·        Declaring and Configuring Web Components

·        Defining Servlet Context Parameters

·        Mapping Servlets and JSP Pages

·        Mapping Filters

·        Setting up the Application Operational Environment

·        Configuring Web Applications Security

·        Configuring the J2EE Engine Cookies

·        Limiting the Number of HTTP Sessions

·        Configuring Custom Error Response Pages

·        Defining Custom HTTP Response Status Codes

·        Configuring JSP Tag Libraries

·        Configuring Failover Alert

·        Configuring Welcome Pages

·        Configuring Session Tracking with URL Rewriting Only

·        Specifying HTTP Session Timeout

If you want to make the changes that you made to any of the descriptors permanent, you must save them. To do this, choose File Save from the main menu of the SAP NetWeaver Developer Studio.

Note

You can also have a look at the XML source that the SAP NetWeaver Developer Studio has generated for the descriptors. To do this, open the Source screen from the corresponding screen (either web.xml, or web-j2ee-engine.xml).

 

End of Content Area