From: <[EMAIL PROTECTED]>
> I know this has been asked before... but nothing seems to be working for
me.
> I have a ActionForm in which I reset all my fields to null.
> Can someone please not only correct me on what I'm doing wrong but also
explain why?

> form.reset( mapping, request );

This one looks right... but you have to write the reset method in your
ActionForm class, by default it doesn't do anything.

The only fields I ever reset are checkboxes, though.  Everything else, I
either _want_ to remember the values, or else new values are present in the
request and just overwrite the existing ones.

The framework automatically calls reset before it populates the form bean
from the request.

HTH, I'm not entirely sure what your question is.
-- 
Wendy Smoak


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

Reply via email to