...
For example, in JSP you might create a form using Struts tags.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<s:form action="updatePerson"> <s:textfield label="First name" name="firstName"/> <s:submit value="Update"/> </s:form> |
In Velocity, the same form can also be built using macros.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
#sform ("action=updatePerson") #stextfield ("label=First name" "name=firstName") #ssubmit ("value=Update") #end |
...