struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Ogateter <>
Subject reset doesn't work well
Date Fri, 20 Dec 2002 20:37:30 GMT

I have a problem with reset button. In my jsp file, I have <html:reset/>. In my form
class, I have: 

  public void reset(ActionMapping mapping, HttpServletRequest request) {
    amount = null;

    password = null;

in the struts-config.xml file, it has:

   <action    path="/xxx"

          <forward name="success"             path="/zzz.jsp"/>    

I filled out the fields, if I click reset button before submit the form, the fields are cleared.
But if I submit the form first, and it detects some error(for example: the password is not
correct), the form is showed  with error message. In this case, when I click reset button,
the fields are not cleared. What is wrong with this. I really want the fields can be cleared
if errors are detected. Could someone help me out?



Post your free ad now! Yahoo! Canada Personals

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message