Are you trying to do a server side reset......? Generally it is a client side reset. I think this should be some thing like this... <input type=reset name='Reset' value='Reset">
Isn't it..? did I understood wrongly.? Anil. -----Original Message----- From: Zheng Wen Zhe [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 19, 2006 4:03 PM To: 'Struts Users Mailing List' Subject: Reset the Action Form Hi ye, I have an action form with submit & reset buttons. In the form been class, I do declare the reset method to clear up all the text fields. Here is the situation, after filling in some data into some text field, I select the Reset button. The reset method is called, but those text fields doesn't clear up. Could anyone tell me why?? Cheers, Jason ************The reset method******************** public void reset(ActionMapping mapping, HttpServletRequest request){ firstName = null; lastName = null; userName = null; password = null; passwordCheck = null; email = null; phone = null; fax = null; registered = false; System.out.println("Call reset method in Form..."); } --------------------------------------------------------------------- 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]