To mimic JSF's default error handling and validation you would have to configure Struts to use the validator framework or implement the equivalent in the validate method on an ActionForm.
要模仿JSF默认错误处理和验证,还必须配置Struts使用验证器框架,或者在 ActionForm上的validate方法中实现等价的操作。
The Struts framework calls validate automatically, and if any item fails validation, the form page is rendered again.
Struct框架自动的调用validate,并在验证失败时重新渲染表单页面。
The Struts framework calls validate automatically, and if any item fails validation, the form page is rendered again.
Struct框架自动的调用validate,并在验证失败时重新渲染表单页面。
应用推荐