Show TOC Start of Content Area

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

Use

The presentation layer of our application is a simple Web application with a Servlet and a static HTML page. You are going to work with the persistent objects using a helper class that implements the business logic.

The Web project that you create here is the framework for developing the application. It will contain the JDO classes, the Web front end module, and the helper class.

Prerequisites

You are in the SAP NetWeaver Developer Studio.

Procedure

       1.      Choose File New Project…. Choose J2EE in the left-hand tab and Web Module Project in the right-hand tab. Choose Next.

       2.      Enter a name for the project, such as GettingStartedJDOWeb. Choose Finish.

       3.      In the J2EE Development perspective open the context menu of the GettingStartedJDOWeb project. Choose Properties.

       4.      In the left-hand pane choose Java Build Path.

       5.      Choose Libraries and then choose Add Variable.

       6.      Select ECLIPSE_HOME and choose Extend.

       7.      Browse to the following file: ECLIPSE_HOME/plugins/com.sap.ide.eclipse.ext.libs.jdo/lib/jdo.jar.

       8.      Repeat the procedure to add the following file: ECLIPSE_HOME/plugins/com.sap.jdo.api/lib/sapjdoapi.jar.

       9.      Choose OK.

 

Result

You have created the project and you have added all libraries that are necessary for compiling the JDO. Now you can define the persistent capable classes.

 

 

End of Content Area