struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gemes Tibor <>
Subject Re: Where to fill default values of a form in ActionForm ?
Date Sun, 01 Dec 2002 11:16:09 GMT
2002-12-01, v keltezéssel Zsolt Koppany ezt írta:
> Hi,
> right now I use the reset method to fill the form with some default values but 
> I see in my logs that reset is called when I click on the cancel button. 
> Because I fill default values from a database I don't want to execute this 
> query when the form is being cancelled.
> What is the best way to fill default values of a form?

Create an action which prepopulates your ActionForm.

Look into the struts-example.war and check the /editRegistration and the
/saveRegistration mappings.



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

View raw message