<form:form method="post" commandName="registerForm" action="${action}">
<formElement:formSelectBox idKey="register.age"
labelKey="register.age" selectCSSClass="form-control"
path="titleCode" mandatory="true" skipBlank="false"
skipBlankMessageKey="form.select.empty" items="${titles}" />
<formElement:formInputBox idKey="register.firstName"
labelKey="register.firstName"
path="firstName" inputCSS="form-control"
mandatory="true" />
/>
我希望age
只包含数字,否则会产生错误
但JSP没有onkeypressed
事件或type
那么,我该怎么办?