计算机与现代化 ›› 2011, Vol. 1 ›› Issue (1): 85-3.doi:

• 应用与开发 • 上一篇    下一篇

基于Struts2框架校验数据及整合正则表达式的实现方法

周冬初1,鞠凤娟2 ,郭东珲3

  

  1. 1.江西省计算技术研究所,江西 南昌 330002; 2.江西蓝天学院,江西 南昌 330098; 3.江西省科技馆,江西 南昌 330025
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2011-01-20 发布日期:2011-01-20

Implementation of Validation Data and Integration Regular Expression Based on Struts2 Validation Framework

ZHOU Dong-chu1, JU Feng-juan2, GUO Dong-hui3   

  1. 1.Jiangxi Institute of Computing Technology, Nanchang 330002, China; 2.Jiangxi Blue Sky Institute, Nanchang 330098, China;3.Jiangxi Science and Technology Museum, Nanchang 330025, China
  • Received:1900-01-01 Revised:1900-01-01 Online:2011-01-20 Published:2011-01-20

摘要: Struts2是一个可扩展的Java EE Web框架,主要负责Web页面端的控制和整合。本文简单介绍Struts2框架和正则表达式的概念及功能,阐述如何通过Struts2框架结合正则表达式来校验数据规则的正确性。

关键词: Struts2, 正则表达式, 数据校验

Abstract: Stuts2 is an expandable Java EE Web framework. It is able to control and integrate Web client. This article simply introduces the Struts2 framework and the concept and function of regular expression, and describes how the Struts2 framework validate data rule by regular expression.

Key words: Struts2, regular expression, data validation