Info |
---|
The example code for this tutorial, Preparable_Interface_Struts2_Mvnpreparable_interface, is available on Google Code - for checkout from http://code.google.com/p/struts2-examples/downloads/list |
Introduction
Often the data used to populate a form control is dynamically generated, perhaps from a database. When the user submits the form, the Struts 2 validation interceptor attempts to validate the user's form input. If validation fails the Struts 2 framework returns the value "input" but the "input" action is not re-executed. Rather the view associated with the "input" result is rendered to the user. Usually this view is the page that displayed the original form.
...