Show TOC Start of Content Area

Procedure documentation Creating Web Projects  Locate the document in its SAP Library structure

Use

Before you create Web resources, such as JSPs or servlets, you need a Web project to which you can assign them. The Web project also contains the deployment descriptors that will be included in the WAR file. The Web Project can be referenced from an Enterprise project for deployment.

Procedure

Creating Web Module Projects

       1.      Choose File New Project.

       2.      On the left pane of the first wizard page, choose J2EE, and on the right pane, select Web Module Project.

       3.      Choose Next.

       4.      In the Project name field, enter a name for your new Web Module project.

       5.      Select Use default if you want to create the suggested folder for your project.

If you want to specify a different folder, deselect Use default.

       6.      Choose Finish.

Creating Web Module DCProjects

...

       1.      Import the relevant development configuration. See Importing Development Configurations.

       2.      Choose File New Project.

       3.      On the left pane of the first wizard page, choose Development Component, and on the right pane, select Development Component Project.

       4.      Choose Next.

       5.      Select the software component to which the development component is to be assigned.

       6.      Choose Next.

       7.      Specify the project attributes as follows:

Attribute

Description

Vendor

Globally unique vendor name. It is recommended that you derive this name from the Internet domain of the provider (for example, sap.com).

Name

Choose a Name Prefix from the drop down menu (if applicable). Specify a unique development component (DC) name.

Caption

(Optional) Name used in visual tools to refer to the DC.

Language

(Optional) Original language of the DC project.

Domain

(Optional) Describes in which area the DC is used. You can select from the drop down list of this field the area of your DC. For example, if your DC deals with finances, select the Financial Services option.

Local Development Component

(Optional) Flags the DC as a local DC. You should only activate this option if the DC is not to be checked in to the DTR, but only to be created locally. In this case, no assignment is made to a DTR activity.

However, you can assign the local DC to an activity at a later stage in the project processing.

Sync Used Archives

(Optional) Select this if you want to add a standard set of DCs to be used to the DC to be created. The relevant DCs are then synchronized from the DTR and listed individually in the new DC project under Used DCs.

Type

Choose J2EE Web Module.

       8.      Choose Next.

       9.      Choose Finish.

Result

In the J2EE Explorer (for ordinary projects) or J2EE DC Explorer (for DC projects), you can see the Web project. It has web.xml and web-j2ee-engine.xml deployment descriptors, and two folders (initially empty):

      source – This folder contains the Java source files of the project.

      webContent – Contains the JSP, HTML and servlet components.

If this is a DC project, it will also have additional components used for working with the NetWeaver Development Infrastructure.

You can now add Web resources to the project.

 

See also:

Creating Servlets

Creating JSP Files

Creating Filters

Creating Listeners

Building WARs

 

End of Content Area