Two Laptop Bag*
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 Murach's Java Servlets and JSP this week in the Servlets 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
Similar Threads
skipping JSF validation for reset event
Problem with checkbox
Resetting jsp form elements in mozilla
New page is loading with old values
reset method