O'Reilly logo

Struts Kick Start by Kevin Bedell, James Turner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

http://myAppServer/StrutsTaglibs/html.jsp

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/HtmlErrors.do.

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/HtmlErrors.do.

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required