File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Reset tag 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 "Reset tag" Watch "Reset tag" New topic
Author

Reset tag

sudhakar Tadepalli
Ranch Hand

Joined: Dec 27, 2001
Posts: 130
Can some one answer how to use Reset tag ?. I have this line in my JSP.
<html:reset></html:reset>. Do I need to do anything in the ActionForm ?.

This is similar question like this. But didn't find the solution.
http://www.coderanch.com/t/51896/Struts/html-reset-Not-working-as
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
The <html:reset> tag simply creates an <input type="reset" > tag. If you're using Struts client side validation, it also disables validation when this button is pressed. Since clicking this button does not cause a form submission, you don't have to do anything on the server side. It just causes the form fields to be reset to their initial value.


Merrill
Consultant, Sima Solutions
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Reset tag
 
Similar Threads
calling reset on the form bean
struts in Resin and Tomcat
clear dynavalidator form
MappingDispatchAction's JSP CODE
How to reset form