Show TOC

Procedure documentationCreating J2EE 1.4-Compliant Web Components Locate this document in the navigation structure

 

In this document you can find the differences between the wizards for creating J2EE 1.4-compliant and Java EE 5-compliant Web components in the Developer Studio. They are both created using the Dynamic Web Project wizard but with different project facets for each version.

Procedure

1. Create a Dynamic Web Project
  1. In the context menu of the Project Explorer, choose   New   Dynamic Web Project.  

  2. Enter the name of the Web project and choose Modify. Select SAP Web J2EE 1.4 Project in the Configurations field.

  3. Define the project facets. You can save the currently selected facets; these are the default facets for the SAP Web J2EE 1.4 Project, which you chose in the Configurations field. The default facets are:

    • Dynamic Web Module with version 2.4

    • Java 6.0, but you can change the version to Java 1.4 and Java 5.0

    • SAP-Specific Web Module with version 2.4

    You can optionally add Java Persistence, Axis2 Web Services, JavaServer Faces and WebDoclet facets. Choose OK.

    Note Note

    You can change the project facets later at any time by choosing   Properties   Project Facets   in the project's context menu.

    End of the note.
  4. In the Target Runtime field, select SAP Libraries. This automatically sets the necessary libraries for building the project as specified in the Configuration field.

  5. Choose Finish.

More information about creating Java EE 5-compatible Web components: Creating Dynamic Web Projects

2. Create Servlet and JSP components

The wizards for creating Servlets and JSPs in J2EE 1.4 Web components are the same as the wizards in Web 2.5 components.

More information:

3. Edit Deployment Descriptors

When you create a Dynamic Web Project, the Developer Studio automatically creates both web.xml and web-j2ee-engine.xml. You can use the multipage editor for editing the deployment descriptors to configure your Web components.

More information: web-j2ee-engine.xsd