struts2自學中「小越坑"之 前臺向後臺傳參數

前臺代碼: 前臺效果: 後臺代碼: 有上代碼可看到,LoginAction類繼承和實現com.opensymphony.xwork2.ActionSupport, 並在LoginAction中聲明兩個私有String類型變量username和password(前端input控件的name屬性值),並寫上對應參數的setter和getter幫助ActionSupport類獲取和設置參數。 在Logi
相關文章
相關標籤/搜索