验证struts 2中的广播列表 [英] validation to a radio List in struts 2

查看:94
本文介绍了验证struts 2中的广播列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个调查应用程序,重复列表中的每个问题都需要至少选择其可选答案之一. 我想使用struts 2来验证是否已回答了每个问题. 非常感谢, 姆巴亚德(Mbayader)

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

推荐答案

满足要求的一种方法是扩展struts2 ActionSupport类.然后,您应该对问题中提到的业务需求覆盖super validate()方法.

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.

这篇关于验证struts 2中的广播列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆