Creating a presentation node

You need to create a presentation node for your application if your application supports Web clients. To create a presentation node, do the following:
  1. From the Graphical Editor view of the Graphical Builder, select Presentation under the CompositonNode and then click anywhere in the Presentation Logic box.
    Screen capture showing how to create a presentation node
    Note: You probably see an exclamation mark on the presentation node. You can put your cursor on the exclamation mark and see the help information that indicates you need to associate the presentation node with a .gph file.
  2. Double-click the presentation node. The Presentation Node Dialog box pops up.
    Screen capture of Presentation Node Dialog box
  3. If you already have a Struts web diagram file ( .gph file), click Browse and locate your .gph file. The .gph file name is displayed.
    Screen Capture for File Selection after you click Browse in the previous screen
    Click OK to close the dialog box. The .gph file appears in the Struts GPH File field. Click OK:
    Screen Capture for Presentation Node Dialog box with Struts GPH File.
  4. If you do not have a .gph file yet, create a .gph file for this node:
    1. From the Presentation Node Dialog box, click the Create button.

      Make sure you create the .gph file into a directory under the Rational® Application Developer or WebSphere® Integration Developer workspace.

    2. In the pop-up window , enter the name of the .gph file that you want to create.
    3. From the Graphical Editor view, double-click the presentation node you have created to open the web diagram editor.
    4. In the Web Diagram Editor view, design your Struts entities.

    If you already have a .gph file, from the Package Explorer view, you can drag and drop the existing .gph file into the Graphical Editor to create a presentation node.

  5. After you completed the Presentation Node Dialog, the presentation node will display the .gph file as the node name without exclamation mark.
    Screen Capture after you completed the Presentation Node Dialog box
Note: If your have associated your presentation node with an existing .gph file, you can put your cursor on the presentation node to see the help information. The help information that shows a list of actions indicates your Struts configuration file contains EJB actions that have not been resolved by the Graphical Builder.