摘要: 使用struts校验框架验证表单输入很方便,有两种使用方式:1.添加到Action类的validate方法验证用户的输入。2.使用XML表单验证Form Validation Using XML(当然也可以用注释annotation但和xml类似)。原理是一样的,这里以第一种方式说明struts校验框架执行的时机。struts校验框架执行时机原文:When the user presses the submit button on the register form, Struts 2 will transfer the user's input to the personBean&# 阅读全文
posted @ 2012-10-07 19:31 wanpp590 阅读(399) 评论(0) 推荐(0)