> -----Original Message----- > From: news [mailto:[EMAIL PROTECTED] Behalf Of Davide Gurgone > Sent: Friday, September 10, 2004 10:00 AM > To: [EMAIL PROTECTED] > Subject: Re: ActionForm in session scope - the best way. > > > >>Were do you place the methods that have to initialize action forms? > > > In the actions. I typically use ShowBlahFormAction as a name, > > and similar for the acutal url. > > what does it means? ShowBlahFormAction???
My Action class name follow the pattern ShowBlahFormAction. Blah being whatever the name of the form is, if it's a form. It's a read only page then its ShowPageNameAction. > > >>In some case I have to do this before populate, and in other > >>case after > >>the populate (reset and validate). > > > > > > Not sure what you mean here. > > In some cases I have to pre-populate the form bean with the default > values, because if the request contains some values, I can't > cover them > with the default values, 'cause they are only default values... > > Now you understand? Handle that in your action, if I understand you correctly. > > > Use the validate option in the action mapping. Turn it to > false when > setting up the form, and true when the form gets submitted > for edit or add. > > Ok, but I have the control of the action only after validate calling! > To do what you say I have to create a dispatch action, Ok? > > > >>I'm sorry for my bad english... I hope you understand me... > >> > >>best regards, > >> > >>-- > >>Davide Gurgone. > >>davide_at_gurgone_dot_it > >> > >> > >>------------------------------------------------------------ > --------- > >>To unsubscribe, e-mail: [EMAIL PROTECTED] > >>For additional commands, e-mail: [EMAIL PROTECTED] > >> > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]