Show TOC Start of Content Area

Procedure documentation Creating J2EE 1.4-Compliant Web Components   Locate the document in its SAP Library structure

Use

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. Choose Next.

       2.      Enter the name of the Web project and select SAP Web J2EE 1.4 Project in the Configurations field. In the Target Runtime field, select SAP Libraries. This automatically sets the necessary libraries for building the project as specified in the Configurations field. Choose Next.

       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 5.0, but you can change the version to Java 1.4 and Java 1.3

       SAP Specific Web Module with version 2.4

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

Note

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

       4.      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:

      Creating Servlets in the Developer Studio

      Creating JSP Files in the Developer Studio

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

End of Content Area