Action层: QryAction.java class QryAction{ QrySevice qrtSevice execute(){ qrtSevice.saveSvc(); qrtSevice.updateSvc(); qrtSevice.deleteSvc() qrtSevice.qrySvc() } } Service层: QrySevice.java class QrySevice{ QryDAO qrtDAO; saveSvc(){ qrtDAO.save(); } updateSvc(){ qrtDAO.update() } deleteSvc() { qrtDAO.delet() } qrySvc() { qrtDAO .query} } Dao层: QryDAO.java class QryDAO{ save() update delete() query() } Struts.xml:
返回相应jsp页面 ApplicationContext.xml
Jsp: