Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
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/listImage Removed. After downloading and unzipping the file, you'll have a folder named Preparable_Interface_Struts2_Mvn. In that folder will be a README.txt file with instructions on now to build and run the example applicationstruts.apache.org/2.3.1.2/docs/junit-plugin.htmlImage Added.

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.

...