Hi Mehmet,
The reset method of your form bean will be executed every time it passes through the controller on a redirect, which is handled as a new request. As such, if you do not want to have the reset method called you should forward your pages rather than redirecting them (I don't think this is a good idea for forms).
An alternative, if you want to use redirect (which I would recommend to circumvent the form-resubmit prompt on reload or when navigating with the browser's back button), is to set your formbean in the session and reset it manually (when needed).
Hope this helps, Aladin
Adam Hardy wrote:
On 08/05/05 13:09 Mehmet E. wrote:
Form Bean scope is session. In every request form bean
RESET method is executing. I am useing struts with
tiles. There is no code for removing form bean from
session. As i know, it must execute one times per
session after creation of form bean.
Mehmet, I never used the formbean in session scope but I'm guessing that reset is triggered once per request.
Logically the alternative request-scope form-bean needs no reset() method, therefore the reset method must specifically exist to be executed on session-scope formbeans on every request.
Someone correct me if I'm wrong - if you wanted you could check quickly in the struts source code.
Adam
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]