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.

Hth

Tib


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to