aspose file tools*
The moose likes Struts and the fly likes html:reset - Not working as I expected Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html:reset - Not working as I expected" Watch "html:reset - Not working as I expected" New topic
Author

html:reset - Not working as I expected

Tim Manchester
Ranch Hand

Joined: Nov 03, 2004
Posts: 62
Howdy,

I added the tag <html:reset /> to a page and I see the button, but when I have the page loaded in a browser, the button does nothing. Am I supposed to supply code to clear out the other elements of the form?

Regards,

- Tim Manchester
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

reset buttons do not clear values, they reset values to the defaults (the values the page loaded with). The only times it should clear all values is when the page loads with nothing in the fields.


A good workman is known by his tools.
Tim Manchester
Ranch Hand

Joined: Nov 03, 2004
Posts: 62
Hrmmm.... Well, the page initially loads with no values in the two edit controls and the reset does not do anything. You mention that reset sets the controls to a default state. How does one set the default values? I tried to create a constructor for the form and put blank strings in the two edit controls but that didn't work either.

Regards,

- DM_Tim
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: html:reset - Not working as I expected