In this lesson, you will connect the nodes in your Web diagram.
Now that the nodes are placed on the Web diagram, the next step is
to connect the nodes. You will use the connection handles to connect the nodes.
There are two types of connection handles:
- Top level handles connect a page to an action connection.
- Nested level handles draw the local forward connection.
- Hover your mouse over the input.jsp node
in the Web diagram. A border with a connection handle surrounds the node and
a hover action menu displays.
- Click and drag the handle from the input.jsp node to the /computeDay
action. A pop-up menu displays.
- Click Struts form, to submit an input to
the action when calculating a form. A Struts form is added to the input.jsp
node with a line connecting it to the computeDay action.
Tip: Alternatively, you can use the
hover menu to add a Struts link to the node and then drag the link's connection
handle to the computeDay action.
- Connect the computeDay action to output.jsp using a local forward
connection type:
- Hover over computeDay to display the
menu.
- Click the Local forward icon. A local
forward named success is added to the node. The text on
the first local forward you create is named "success" by default.
- Drag the connection handle from the success link
to the output.jsp node. A line is drawn from the Local
forward to the output.jsp to show its connection.
Tip: There
is also a connection handle for each item in a node's links section. When
you are clicking a node to grab its handle, be sure you are dragging the node's
handle and not a links handle.
- Connect the computeDay action to input.jsp using a local forward
connection type:
- Hover over computeDay and drag its connection
handle to input.jsp. A pop-up menu displays.
- Click Local forward. A local forward
named failure is added to the node and a line is drawn
from the local forward to input.jsp to show its connection. The text on the
second local forward you create on a node is named "failure" by default.
- Save the Web diagram.
The Web diagram editor should display a struts link and two local
forward links.