Creating Files in the SAP NetWeaver Developer Studio

Use

To define a new page layout for the Web Page Composer, you create two files in a project in the SAP NetWeaver Developer Studio. You describe the page layout in a JSP file.

Procedure

1.Create a Project in the SAP NetWeaver Developer Studio

  1. Start the SAP NetWeaver Developer Studio.

  2. Create a new project of the type Portal Application for storing your new files.

2.Describe the Page Layout in a JSP File

There are the following ways of describing a page layout:

  • Using HTML tables

    The table cells contain container tags into which you later add content in the page editor.

  • Using CSS-based layouts

    For example, the JSP tabs for the container iViews are in blocks that are generated by <div> elements.

  1. Create a JSP file in your project.

  2. Describe the page layout and its areas (containers) using <div> or <table> definitions that are based on the HTML specification.

For additional examples of JSP files that describe page layouts with HTML tables, see Examples of JSP Files with Different Page Layouts .

3.Create a portalapp.xml File

The portalapp.xml file is the deployment descriptor for portal applications. The file describes the components (containers) and properties of the page layout.

  1. Create a portalapp.xml file in the project.

  2. Use this file to define properties for all of the containers that you use in the new layout. The names of the areas (containers) from the JSP file must match the values of the properties from the portalapp.xml file.

For an example of the portalapp.xml file that you can use for the previously mentioned JSP examples, see Example: portalapp.xml .

4.Export the Project and Upload it to the Portal

  1. Export the project and two files as a PAR file.

  2. Upload the PAR file to your portal.In the portal, choose Start of the navigation pathSystem Administration Next navigation step Support Next navigation step Portal Runtime Next navigation step Administration ConsoleEnd of the navigation path .Select the file in the input field beneath Upload Archive and then choose Upload.

Result

You have created the required files in the SAP NetWeaver Developer Studio and uploaded the PAR file to the portal.

Now carry out the procedure described in Carrying Out Configuration in the Portal Content Studio .