< Previous | Next >

 

 

Lesson 4: Connect nodes in the Web diagram

 

+

Search Tips   |   Advanced Search

 

Use this lesson to learn how to use connection handles to connect the nodes in your Web diagram.

Now that you have placed nodes in your Web diagram, the next step is to connect them. You will use connection handles for this purpose. There are two types of connection handles:

  1. In the diagram, hold the mouse pointer over the input.jsp node. The node is highlighted, a connection handle is displayed, and a hover action menu is displayed.

  2. Click and drag the handle from the input JSP node to the /computeDay action. A pop-up menu is displayed.

  3. Select

    Struts Form to submit an input to the action when processing a form. A Struts form is added to the input JSP node with a line connecting the node to the /computeDay action.

    Tip: Alternatively, you can use the hover menu to add a Struts link to the input JSP node and then drag the link connection handle to the /computeDay action.

  4. Connect the /computeDay action to the output.jsp node using a local forward:

    1. Hold the mouse pointer over the /computeDay node to display the hover menu.

    2. Click the

      Add Local Forward icon. A local forward named success is added to the node. By default, the first local forward that you create in each node is named success.

    3. Drag the connection handle from the success link to the output JSP node. A line is drawn from the link to the node to show the connection.

      Tip: Each item in the Links compartment of a node also has a connection handle. When you click a node to grab its handle, be sure that you drag the node handle and not a link handle.

  5. Connect the /computeDay node to the input JSP node using a local forward:

    1. Hold the mouse pointer over the /computeDay node and drag its connection handle to the input JSP node.

    2. On the hover menu, select

      Local forward. A local forward named failure is added to the node, and a line connects the local forward to the input JSP node. By default, the second local forward that you create in each node is named failure.

  6. Save your Web diagram.

The Web diagram editor should show a Struts link and two local forwards.

 

Lesson checkpoint

Well done! You have connected nodes in a Web diagram.

You learned to do these tasks:

< Previous | Next >