Forum

Number Of Page View:100,000+/Months
LOGIN |New User

Reply

Describe the struts specific form tag?
Instead of using the standard HTML Form tag, like most HTML pages, the struts specific Form tag is : 

<html:form action="" name="" type="">
..........
</html:form>

This tag with its subordinate input tags, encapsulates Struts form processing. The Form tag attributes are :  
  * action : Represents the URL to which this form will be submitted. This is also used to find the appropriate ActionMapping in the Struts configuration file.  
  * name : Identifies the key that is used to lookup the appropriate ActionForm that will represent the submitted form data.  
  * type : Names the fully qualified classname of the form bean you want to use in this request.

To use the struts specific <html:form> tag you have to use the taglib directive:
<%@ taglib uri="WEB-INF/struts-html.tld" prefix="html" %>
Posted By: Name:Rajesh Kr URL: Describe the struts specific form tag?