Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This work-flow can cause a problem if one of or more of the form fields or some other data displayed depends on a dynamic lookup look-up that that is accomplished in the Aciton Action class's input method. Since the Action class's input method is not re-executed when validation fails, the view page may no longer has have access to the correct information to create the form or other display information.

Tip

The Struts 2 user mailing list is an excellent place to get help. If you are having a problem getting the tutorial example applications to work search the Struts 2 mailing list. If you don't find an answer to your problem, post a question on the mailing list.

...

When you run the example application, look in the look log to see when the prepare method is called in relation to the input and execute methods. Running the example application and examining the log should help you understand the impact of implementing the Preparable Interface and the prepare method.

...