struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hernan gonzalez <>
Subject Re: Struts 2 - After validation failure populating the drop downs
Date Tue, 03 Mar 2009 17:39:22 GMT
You should tell us how the dropdowns were populated in the first page.
If only one Action class is involved, and the dropdowns are populated
by reading some attribute of it
(eg:   getOptionListForDropDown() which looks at the
optionListForDropDown list )
you should fill that list, not in the action method that is invoked
for generating the
first form page, but in the prepare method, or in the constructor, or
making the getter method a "lazy getter" (my preferred way, in
general; but this depends on the scenario)

Hernán J. González


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message