Info |
---|
The example code for this tutorial, Form_Tags_Struts2_Ant or Form_Tags_Struts2_Mvn, is available on Google Code - httpform_tags, can be checked out from https://codesvn.google.com/p/struts2-examples/downloads/list |
Introduction
In this tutorial we'll explore some of the other Struts 2 form controls. In our previous tutorials that explained how to use Struts 2 forms (Processing Forms, Form Validation, and Message Resource Files) we covered how to use the Struts 2 head, form, textfield controls and the key attribute. This tutorial will explore using the Struts 2 select, radio, checkbox, and checkboxlist form controls.
...
The example application that supports this tutorial (Form_Tags_Struts2 available at http://code.google.com/p/struts2-examples/downloads/list.) shows how to use Struts 2 form tags so that a user can edit his information. The information that can be edited is encapsulated in an object of class Person. A Person object knows these things: first name, last name, favorite sport, gender, state of residency, is or is not over 21, and car models owned.
...