Show TOC Start of Content Area

Procedure documentation Creating New Development Components Locate the document in its SAP Library structure

Use

In this step you create your new development components. Here you create:

            Enterprise Application

            Web Module

            JSP file

            Java Class file

Procedure

            ...

       1.      Open the Development Configuration perspective and switch to the Inactive DCs view.

       2.      To log on to the DTR, choose Login from the toolbar. Enter USER2 and the corresponding password.

Creating the Enterprise Application DC

            ...

       1.      Open the node of your development configuration APPL_dev and select the entry example.org_application. In the context menu, choose Create New DC.

       2.      In the Development Component Project specify:

Data

Value

Vendor

example.org

Name

As the prefix, choose appl/ from the list and as the text input, enter tax.

Caption

Tax Application

Domain

Financial Services, if available

Type

J2EE  ®  Enterprise Application

       3.      Choose Next.

The dialog window DTR Activity appears.

       4.      Choose New Activity.

       5.      Enter New J2EE Application as the display name and choose OK.

The dialog window DTR Activity appears.

       6.      Choose Next.

The dialog Enterprise Application Project appears.

       7.      Choose Finish.

The dialog now creates the component directly in the DTR as a shared component. The J2EE Development perspective appears and you can see a new Enterprise Application project in the J2EE DC Explorer view.

Creating the Web Module DC

            ...

       1.      Go to the Inactive DCs view in the Development Configuration perspective.

       2.      In the context menu of the example.org_application, choose Create New DC

       3.      In the Development Component Project specify:

       4.       

Data

Value

Vendor

example.org

Name

As the prefix, choose appl/ from the list, and as the text input, enter tax /servlet

Caption

Tax Servlet

Domain

Financial Services, if available.

Type

J2EE  ®  Web Module

       5.      Choose Next.

The dialog window DTR Activity appears.

       6.      Select New J2EE Application and choose Next.

The dialog window Web Module Project appears.

       7.      Choose Finish.

The J2EE Development perspective appears and you should see a new Web Module project in the J2EE DC Explorer view.

Creating a New JSP

            ...

       1.      Go to the J2EE Development perspective in the J2EE DC Explorer view.

       2.      Open the project node of your Web Module DC (...appl~tax~servlet~...).

       3.      In the context menu, choose New  ®  JSP.

       4.      On the dialog, enter tax and choose Finish.

A dialog window DTR Activity appears.

       5.      Select New J2EE Application and choose OK.

The JSP editor is opened automatically.

       6.      Switch to the Source pane and enter the source code of the JSP. See Tax Calculator JSP.

       7.      Save the file.

Create a New Java Class

            ...

       1.      Go to the J2EE Development perspective in the J2EE DC Explorer view.

       2.      Open the Web Module project node (...appl~tax~servlet...) and select the entry Source.

       3.      From the context menu, choose New  ® Java Class.

       4.      On the dialog that appears, enter the following:

                            a.      Package: org.example.tax.web

                            b.      Name: TaxUIController

       5.      Choose Finish.

       6.      On the dialog that appears, select New J2EE Application and choose OK.

The Java editor is opened automatically.

       7.      Enter the source code of the class. See TaxUIController Class.

       8.      Save the file.

Result

You have created the required development objects.

Next Step

Creating Use Dependencies on Another Development Component

End of Content Area