10 2012 档案
摘要:使用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
阅读全文
摘要:错误现象:用户注册处理stuts.xml:<action name="userInfo_*" class="com.indexofme.action.UserInfoAction" method="{1}"><result name="success">/WEB-INF/view/success.jsp</result><result name="input">/WEB-INF/view/register.jsp</result><
阅读全文

浙公网安备 33010602011771号