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:
- Process a HelloWorld application.
- Perform a type validation when invalid input.
- Perform BTT taglib in JSP pages.
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
- Open com.ibm.btt.samples.helloworld.StartHtmlSession class
- 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
- Input null to Name field.
- Input null to Age field.
- Input a number smaller than 10 to Age field.
- Input a number larger than 90 to Age field.