利用Struts2框架实现简单图书信息的管理(CURD操作)
- 主页面index.jsp页面上有按条件查询,图书插入操作,查询图书操作
- 进入子页面查询图书操作的时候,在每行图书信息记录后面,存在着修改和删除操作按钮。
- 当点击修改操作按钮时,进入修改图书子页面。其中,书籍的isbn此项字段为数据库主键,不可修改。
- 当点击删除操作按钮时,会有二次确定删除操作弹框,点击确定后会进行删除操作,反之撤回删除操作。
- 本简单实例中,操作成功/失败后均会进入操作结果页面,最终返回index.jsp。
- 简单数据库文件名称:bookta.sql,用户名:root,密码:123。