command
This category covers element that are used for form submit or generate anchor tag.
<input type="button" value="Save" >
<html:button property="submit" value="submit"/>
With externalized caption in the descriptor:
<html:button property="submit"> <bean:message key="button.save"/> </html:button >
buttonReset
html:reset
<input type="reset" value="Reset Form" >
<html:reset property="reset" value="Reset Form"/>
<html:reset property="reset"> <bean:message key="button.reset"/> </html:reset>
buttonSubmit
html:submit
<input type="submit" value="Save" >
<html:submit property="submit"> <bean:message key="button.save"/> </html:submit>
buttonSubmit(immediate)
html:cancel
<input type="submit" value="Back" >
The representation in source content would be as shown above. In the associated event definition in the event description, the option immediate would be delineated.
The implementation code would be as shown below.
<html:cancel property="cancel" value="Back"/>
<html:cancel property="cancel"> <bean:message key="button.back"/> </html:cancel >
link
html:link
<a id="welcome" href="welcome.html">Welcome</a>
<html:link href="welcome.html">Welcome</html:link>
<html:link action="categoryData/list" parameterId="action" parameterName="actionList"> Categories List </html:link>
link(post)
<a id="done" href="javaScript:submitForm()">Done</a>
<html:link href="javaScript:document.forms(0).submitForm()">Done</html:link>