...
Consider this code which creates a form:
Code Block | ||||
---|---|---|---|---|
| ||||
<s:form action="save" method="post"> <s:textfield key="personBean.firstName" /> <s:textfield key="personBean.lastName" /> <s:textfield key="personBean.email" /> <s:textfield key="personBean.phoneNumber" /> <s:select key="personBean.sport" list="sports" /> <s:radio key="personBean.gender" list="genders" /> <s:select key="personBean.residency" list="states" listKey="stateAbbr" listValue="stateName" /> <s:checkbox key="personBean.over21" /> <s:checkboxlist key="personBean.carModels" list="carModelsAvailable" /> <s:submit key="submit" /> </s:form> |
...