wood burning stoves 2.0*
The moose likes Struts and the fly likes whats the role of reset() methord Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "whats the role of reset() methord" Watch "whats the role of reset() methord" New topic
Author

whats the role of reset() methord

Gaurav Chhabras
Ranch Hand

Joined: Sep 21, 2005
Posts: 126
what is the role of reset() methord in struts.
like we have one field in form :

1) firstName

So when we click the reset methord , then what it will do ,

will it clear the text field or will it make firstName = null, that means make the variable null.

Thanks
Regards
Gaurav
Gunj Agarwal
Greenhorn

Joined: Jan 29, 2006
Posts: 16
The reset() method is called by the Struts framework with each request that uses the defined ActionForm. The purpose of this method is to reset all of the LoginForm�s data members prior to the new request values being
set. You should implement this method to reset your form�s data members to their original values; otherwise,the default implementation will do nothing.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: whats the role of reset() methord
 
Similar Threads
WebSphere V5 CMP create problem
"No getter method for property ..." error
How to check that if same key alreay exists in Hashtable
Validating file extension problem
EJB-QL Question