The Basics of Form Processing

This section provides information on the following tags:

  • <html:form>— Render an HTML <form> element

  • <html:text>— Place a text box INPUT element on a form

  • <html:hidden>— Place a INPUT type=hidden element on a form

  • <html:submit>— Place a Submit INPUT element on a form

  • <html:cancel>— Place a Cancel INPUT element on a form

  • <html:reset>— Place a Reset INPUT element on a form

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 the Form Basics page at http://localhost:8080/StrutsTaglibs/FormBasics.do. The rendered page is shown in Figure 12.3.

Figure 12.3. The Form Basics page at /StrutsTaglibs/FormBasics.do ...

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.