Show TOC Start of Content Area

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

Use

Before you create Web components (servlets, JSP files, and so on), you need to create a Dynamic Web Project. The role of this project type is to organize and collect the Web components of a Java EE 5 application. All class files, resources and deployment descriptors that are supposed to be packed in the same Web archive (WAR) are to be created in the same Dynamic Web Project.

Procedure

...

       1.      Choose FileNewProject…WebDynamic Web Project.

       2.      Enter the necessary project settings.

If you want to specify an Enterprise Application Project to wrap the Web project’s archive, you can select the Add project to an EAR option. You can choose an existing Enterprise Application Project or enter the name of a new project (it will be created along with the creation of the Dynamic Web Project).

       3.      Choose Finish.

Result

The project has configurable properties called facets. You can modify the project using its facets. During the creation of the project, you can choose a set of facets in the pages of the new project wizard. Later at any time, you can reach them using PropertiesProject Facets in the context menu of the project.

Caution

Do not make the project Java 6.0 compliant (by default it is always JDK 5.0 compliant, regardless of the Developer Studio’s Java Virtual Machine (JVM) ) using PropertiesJava CompilerCompiler compliance level option. Since the AS Java runs on a JDK 5.0 compliant virtual machine, your project will not deploy there.

You can now use the corresponding wizards to create the necessary servlets, JSP pages and so on.

End of Content Area