File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes HTML form is not resetting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "HTML form is not resetting " Watch "HTML form is not resetting " New topic

HTML form is not resetting

Anand Gondhiya
Ranch Hand

Joined: Feb 24, 2004
Posts: 155
Hello All,
I have a EducationForm which contains schooling info.
Once I enter the info ,it saves to database and after that It comes with the same old info which i just filled in the form.
i.e After adding , The form doesn't get reset.

I already have a javascript function "resetForm()" which is called when the "add" button called in EducationForm.

Also , ActionForm already has reset method !! then why it is not resetting ??

thanx for replies
I agree. Here's the link:
subject: HTML form is not resetting
It's not a secret anymore!