Input Validation and <html:errors>

This section provides information on the following tag:

  • <html:errors>— Output error text to the user

If you point your browser to the URL


you’ll bring up the main page that links to all the sample code for the Struts tag chapters. This section uses <html:errors> Sample Code page at /StrutsTaglibs/

This page is shown in two different stages. The first stage, shown in Figure 12.6, shows the page as it appears when no validation errors have occurred.

Figure 12.6. The <html:errors> Sample Code page with no errors shown at /StrutsTaglibs/

Figure 12.7 displays the same file with errors showing. Simply checking the check box element and ...

Get Struts Kick Start now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.