You can use Web diagrams to help you build WebFacing services using
a visual development environment. Because the Struts Controller runtime is
active by default during WebFacing conversion, you can extend the application
to include Struts-based WebFacing services. You can then integrate these services
with your WebFacing application using command key actions or field hyperlinks.
You
can look at the following object from the Navigator view:
- WebFacing project/Web Diagrams/WF Runtime/WFController.gph -
This read-only diagram illustrates the WebFacing Struts Controller design.
To create your first Web Diagram within your Struts-based WebFacing
project:
- In the Navigator view, expand .
- Right-click the Web Diagrams folder and
select .
- Click Next.
- Enter the name of the new diagram, for example, MyWFService.
- Click Finish to create the new Web diagram.
To add objects to the diagram:
- Right-click anywhere inside the diagram and select to
create an icon that represents the new JSP.
- Name the Web Page node by providing a relative path from the WebContent folder
of your project. To rename a node later, right-click the node and select Rename.
- Repeat steps 1 and 2 to add another Web page.
- Right-click the first Web Page node, select Connection,
and then drag your cursor to the second Web Page node to make a visual connection
between these two nodes.
- For both Web Page nodes, double-click the node to invoke a wizard.
- Walk through the wizard and click Finish to create,
or realize, the node.
Now that you know the basics for Web Diagram development, you
can begin to develop more of your application within the visual environment.
To continue from where you left off, you can also develop Action Mappings,
Form Beans, and so on.
After you develop services, JSPs, or other items
in a Web diagram, you can configure command keys for your WebFacing application,
that when clicked, invoke a particular item that you developed using the Web
diagram. See the related tasks for more information.