Lesson 1.4: Connecting Web diagram nodes

In this lesson, you will connect Web diagram nodes.

Now that the nodes are placed on the Web diagram, the next step is to connect the nodes.
  1. 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. Hover action menu and connection window
  2. Click and drag the handle from the input.jsp node to the /computeDay action. A pop-up menu displays. struts link pop up window
  3. Click Struts link. A Struts link is added to the input.jsp node with a line connecting it to the computeDay action. Struts link from input.jsp 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.
  4. Connect the computeDay action to output.jsp using a local forward connection type:
    1. Hover over computeDay to display the menu.
    2. 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.
    3. 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.
  5. Connect the computeDay action to input.jsp using a local forward connection type:
    1. Hover over computeDay and drag its connection handle to input.jsp. A pop-up menu displays.
    2. 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.
  6. Save the Web diagram.
The Web diagram editor should display a struts link and two local forward links.Web diagram editor summary with links

Lesson checkpoint

You have learned how to connect Web diagram nodes.

You learned to:
  • Add struts links between the input JSP and the Action node.
  • Add local forward link between the Action node and the JSPs.