Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

For example, in JSP you might create a form using Struts tags.

Code Block
xml
xml
titleJSP Formxml
<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
xml
xml
titleVM Formxml
#sform ("action=updatePerson")
    #stextfield ("label=First name" "name=firstName")
    #ssubmit ("value=Update")
#end

...