Show TOC Start of Content Area

Procedure documentation Tutorial 1: Step 3 – Building, Deploying, and Running Projects Locate the document in its SAP Library structure

Prerequisites

You are in the J2EE Development perspective in the J2EE Explorer view.

Procedure

Build a Project

...

       1.      Select the TaxEAR project and choose Build EAR File from the context menu.

This will create an EAR archive for your application.

Deploy a Project

...

       1.      Select the TaxEAR.ear file in the TaxEAR project and choose Deploy to J2EE Engine from the context menu.

The Deploy Output view appears.

       2.      Wait until the message appears that confirms the successful deployment.

Run a Project

...

       1.      To launch the tax.jsp file in a web browser you have to create a run configuration.

                            a.      To do this, choose Run ® Run …from the menu bar.

                            b.      When the Run form is available, select J2EE Application in the Configuration box and choose New.

                            c.      To find the Enterprise Application project to which the JSP file belongs, choose Browse.

                            d.      Select TaxEAR and confirm with OK.

                            e.      To find the JSP file, activate the radio button JSP and choose Browse.

A dialog box appears.

                              f.      Select tax.jsp.

                            g.      That all you have to enter in tab Web Objects.

Note

Regarding tab J2EE Engine the settings from Window ®Preferences ®SAP J2EE Engine are taken automatically.

                            h.      Specify the name taxcalcfor the newly created run configuration.

                              i.      Choose Apply to save the settings in this configuration.

       2.      Test the application.

                            a.      Launch the JSP page using the created run configuration taxcalc.

                            b.      Enter your income and press the button.

Your tax calculation program runs in your browser.

Check in Your Changes to the DTR

After the successful test, save your data on the DTR server.

...

       1.      Switch to the Design Time Repository perspective.

       2.      In the Open Activities view locate the activity Add Content and in the context menu choose Checkin.

       3.      In the Checkin dialog enter a description for the activity if you like and confirm by pressing the OK button.

The activity is checked in. It is now in a closed state and can no longer be changed. The versions in this activity are now available on the server.

Result

Your tax calculation is executable and the sources are stored on the DTR server. This completes this tutorial.

End of Content Area