In case you have coarse grained ActionForm which is used by BOTH actions in that case reset() will be called twice as request will go from RequestProcessor both times.
Theoretically, in case you have DIFFERENT ActionForms for BOTH actions in that case reset() will be called for respective ActionForms.
Request parameters to set values in ActionForm will be available in both actions.
Thanks Manish Singla
Yury Rabiankou wrote:
Hello everybody,
I cannot understand the following passage from Ted Husted's Struts in Action (p.228):
"If you forward from one Action to another Action... the ActionForm bean is reset, repopulated, and revalidated, and, if all goes well, passed to the second Action"
How can the same ActionForm bean be passed to the second Action, if the second Action could have a different ActionForm bean type (different subclass of ActionForm used for the second Action).
Generally, I was under impression that ActionForms are always created anew for each Action execute() call. I don't get it, in what cases an ActionForm is reused and when reset() method could be called?
Thank you!
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]