Previous Next vertical dots separating previous/next from contents/index/pdf

Checking for Consistency after Changes

In this section, you will see how Workshop advises you of the potential problems that can develop as you make changes to your application.

The Workshop Studio group of products maintain an incrementally updated database containing all the interdependencies and relationships between the web application artifacts. For example:

When any of the web application artifacts is modified, the IDE automatically performs a consistency check and reports any problems that it detects as warnings.

An important benefit of this approach is that problems are detected early during development of the web application without the need for an explicit "build" or "check" operation.

Producing a Java Source File Inconsistency

  1. Double-click checkoutPayment.jsp in the Package Explorer to open this page.
  2. In the Variables view, right-click the profile variable, and choose the first menu item. The Profile.java file, which implements the variable type, is opened.
  3. Press Ctrl-F to search for the getFirstName() method:
  4. public String getFirstName()

    {

      return m_firstName;

    }

  5. Change getFirstName() to getGivenName(), and save the Java file.
  6. A warning is displayed in the Tasks view indicating that the firstName field is undefined for the type Profile.

  7. Change getGivenName() back to getFirstName().
  8. Saving the Java file removes the error entry from the Tasks view.

Producing a Struts Configuration File Inconsistency

  1. Double-click WEB-INF/struts-config.xml in the Package Explorer to open this page.
  2. In the Smart Editor, change the Action Mapping Path of the initially selected action from
    /changeLocale to /changeLanguage.
  3. Press Enter to confirm the entry, and then save the file.
  4. A warning is displayed in the Tasks view, indicating that the changeLocale action cannot be found in the Struts configuration file.

  5. Change /changeLanguage to /changeLocale, and then press Enter to confirm the entry.
  6. Saving the file removes the warning from the Tasks view.

 

Related tasks

Finding and fixing problems in your application

Click the arrow to navigate through the tutorial:

 

Skip navigation bar   Back to Top