This content was uploaded by our users and we assume good faith they have the permission to share this book. If you own the copyright to this book and it is wrongfully on our website, we offer a simple DMCA procedure to remove your content from our site. Start by pressing the button below!
Doray_6048C08.fm Page 83 Thursday, January 12, 2006 10:59 AM
CHAPTER 8 ■ BASIC STRUTS TAGS
Doray_6048C16.fm Page 229 Tuesday, January 24, 2006 10:14 AM
CHAPTER 16 ■ DYNAMIC FORMS
Notice that this is a straight copy of Listing 8-1. I didn’t have to make any changes to the JSP in order to use dynamic forms. As I’ve discussed previously, this is because I haven’t used EL in the tags. Previously, in Chapter 6, I had to use an ActionForm subclass called RegistrationForm (see Listing 6-1) in order to store and validate the form data. No longer! Since I’ll use DynaValidatorForm and the Validator framework, I no longer need this class. Listing 16-4 shows how to declare the dynamic form (the changes from Listing 6-1 are in bold font). Listing 16-4. struts-config.xml for the New Registration Webapp