Struts2框架校验文件自动生成技术  被引量:2

Automatic Generation Technology of Validation File of Struts2 Framework

在线阅读下载全文

作  者:常革新[1] 任永昌[1] 

机构地区:[1]渤海大学信息科学与技术学院,辽宁锦州121013

出  处:《计算机技术与发展》2013年第1期59-62,66,共5页Computer Technology and Development

基  金:国家自然科学基金资助项目(70871067);2011年辽宁省东欧及独联体国家重点引智项目

摘  要:良好的输入校验是成熟软件的必备条件。针对Struts2框架的Web页面服务器端校验代码难于编写等问题,文中研究将页面的数据设置到表中,由应用程序自动生成validation.xml配置文件的技术。在对Struts2的输入校验流程进行分析的基础上,设计自动生成时用到的"校验器字典"和"页面控件设置"两个表的结构;然后进行自动生成程序设计,包括程序设计流程和主要的校验函数;最后通过自动生成实例进行验证。结果表明,自动生成输入校验的validation.xml配置文件,提高了软件开发劳动生产率,同时,自动生成技术也是软件工程未来重要的研究方向。Good input validation is a prerequisite for sophisticated software. Aiming at the problem which validation code is hard to com- pile for Web page server for the Struts2 framework, study the technology that put page's data set into the tables, automatically generate validation, xml by the application program. On the basis of the Struts2 input validation processes,design the structure of two tables,the " checker dictionary" and "control settings page" used when automatically generated;then automatically generates programming,including program design process and the main validation function ;finally verify through automatic generation of examples. The results show that input validation, xml configuration files automatically generated,is to improve software development productivity, and automatical genera- tion technology is an important future research directions of software engineering.

关 键 词:STRUTS2 校验文件 VALIDATION XML 自动生成技术 

分 类 号:TP311[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象