Working with the HTML HelloWorld sample application

The application starts by an entrance-paths link. When the Start HelloWorld link is clicked, the application displays the main page, which presents the following list of features: You select "Title" in the main page and input values to "Name" and "Age". When you click Submit, a complete page showing the result of the transaction appears. If the value you input is invalid, type validation is triggered.

Add "Miss." To Title field

  1. Open com.ibm.btt.samples.helloworld.StartHtmlSession class
  2. Add the following code:
    setValueAt("titles.0.name", "Mrs.");
    setValueAt("titles.0.value", "Mrs.");
    setValueAt("titles.1.name", "Mr.");
    setValueAt("titles.1.value", "Mr.");
    // add "Miss." title
    setValueAt("titles.2.name", "Miss.");
    setValueAt("titles.2.value", "Miss.");

Simulating errors

  1. Input null to Name field.
  2. Input null to Age field.
  3. Input a number smaller than 10 to Age field.
  4. Input a number larger than 90 to Age field.