I have jsp containing a form to add employees. This submits to an action that adds the new employee to the database, and then forwards back to the add employee page so that more employees can be added. Currently, when I get back to the jsp the ActionForm still contains the original data, but at this point I want a blank action form.

If I am using an ActionForm (as opposed to a DynaActionForm), what is the best way to clear the form? * I can manually clear all the fields in the action before calling findForward * Should I override the ActionForm reset method (and call reset before findForward) ?
* Should I use a DynaActionForm instead?  (Would that provide any advantage)
* Is there some other obvious solution that I'm missing?

BTW, this is struts 1.3.5.  The action configuration declares request scope.

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

Reply via email to