摘要
随着网络技术的飞速发展,数据的有效性校验变得更加重要。基于Struts的数据校验框架是一种通过配置外部XML文件,是一种利用可重用的校验规则和正则表达式匹配规则的校验机制。分析了实现这个框架的关键技术和工作流程,提出了在这个框架中如何扩充数据校验的方法,并且实现了把这种基于Struts框架移植到一般的Java系统的方案。
With the development of the internet technologies, validation is more important. The validator framework based on struts is a mechanism configuring outside XML files with the reusable validation regulations and matching regulations of regular expression. Some associated technologies and the workflow of the framework are analyzed, and a method of extending the validation ways is put forward. And a scheme of validating outside of struts was represented.
出处
《计算机工程与设计》
CSCD
2004年第8期1313-1316,共4页
Computer Engineering and Design