validation to a radio List in struts 2

巧了我就是萌 提交于 2020-01-07 03:45:08

问题


I have a surveying application were each question in an iterated list needs to have at least one of its optional answered selected. I want to validate using struts 2 , that each question has been answered. many thanks, Mbayader


回答1:


One ways to accomplish on your requirement is by extending the class struts2 ActionSupport class. Then you should override the super validate() method to your business requirement in which you have mentioned in your question.



来源:https://stackoverflow.com/questions/6242590/validation-to-a-radio-list-in-struts-2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!