Struts2第十篇【數據校驗、代碼方式、XML配置方式、錯誤信息返回樣式】

回顧以前的數據校驗 使用一個FormBean對象來封裝着web端來過來的數據 維護一個Map集合保存着錯誤信息…對各個字段進行邏輯判斷 //表單提交過來的數據全都是String類型的,birthday也不例外! private String username; private String password; private String password2; pr
相關文章
相關標籤/搜索