You need to create a presentation node for your application if your
application supports Web clients. To create a presentation node, do the following:
- From the Graphical Editor view of the Graphical Builder,
select Presentation under the CompositonNode and
then click anywhere in the Presentation Logic box.
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.
- Double-click the presentation node. The Presentation
Node Dialog box pops up.
- If you already have a Struts web diagram file ( .gph
file), click Browse and locate your .gph file. The
.gph file name is displayed. Click OK to close the
dialog box.
- If you do not have a .gph file yet, create a .gph file
for this node:
- From the Presentation Node Dialog box,
click the Create button.
Make
sure you create the .gph file into a directory under the Websphere Studio
Application Developer workspace.
- In the pop-up window , enter the name of the .gph file that
you want to create.
- From the Graphical Editor view, double-click the presentation
node you have created to open the web diagram editor.
- 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.
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 or WSIF
actions that has not been resolved by the Graphical Builder.