实验四 JavaBean及Servlet使用源代码

上传者: wv757 | 上传时间: 2024-10-29 16:42:13 | 文件大小: 2.14MB | 文件类型: ZIP
四、实验内容 1.创建一个数据库,在数据库建立用户表,插入几条用户数据。(5分) 2. 编写一个JavaBean“User.java”,它包含属性stuno(String)、password(String)、stuname(String),并编写相应的getter和setter方法。(25分) 3.编写一个登录页面,输入学号和密码,在数据库中进行验证,如果验证通过,则在另一个页面中显示学生的姓名;如果验证不通过,返回登录页面,并提示用户不存在信息。要求数据提交到Servlet中进行处理,使用JavaBean封装学生信息,使用DAO查询数据库。(60分)

文件下载

资源详情

[{"title":"( 26 个子文件 2.14MB ) 实验四 JavaBean及Servlet使用源代码","children":[{"title":"lab4","children":[{"title":".classpath <span style='color:#111;'> 930B </span>","children":null,"spread":false},{"title":".settings","children":[{"title":"org.eclipse.wst.jsdt.ui.superType.name <span style='color:#111;'> 6B </span>","children":null,"spread":false},{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 364B </span>","children":null,"spread":false},{"title":".jsdtscope <span style='color:#111;'> 567B </span>","children":null,"spread":false},{"title":"org.eclipse.wst.common.component <span style='color:#111;'> 464B </span>","children":null,"spread":false},{"title":"org.eclipse.wst.common.project.facet.core.xml <span style='color:#111;'> 345B </span>","children":null,"spread":false},{"title":"org.eclipse.wst.jsdt.ui.superType.container <span style='color:#111;'> 49B </span>","children":null,"spread":false}],"spread":true},{"title":"src","children":[{"title":"servlet","children":[{"title":"LoginServlet.java <span style='color:#111;'> 1.70KB </span>","children":null,"spread":false}],"spread":true},{"title":"dao","children":[{"title":"UserDao.java <span style='color:#111;'> 96B </span>","children":null,"spread":false},{"title":"impl","children":[{"title":"UserDaoImpl.java <span style='color:#111;'> 795B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"model","children":[{"title":"User.java <span style='color:#111;'> 685B </span>","children":null,"spread":false}],"spread":true},{"title":"test","children":[{"title":"TestUser.java <span style='color:#111;'> 458B </span>","children":null,"spread":false}],"spread":true},{"title":"util","children":[{"title":"DaoFactory.java <span style='color:#111;'> 182B </span>","children":null,"spread":false},{"title":"DatabaseBean.java <span style='color:#111;'> 833B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"build","children":[{"title":"classes","children":[{"title":"servlet","children":[{"title":"LoginServlet.class <span style='color:#111;'> 1.92KB </span>","children":null,"spread":false}],"spread":true},{"title":"dao","children":[{"title":"UserDao.class <span style='color:#111;'> 176B </span>","children":null,"spread":false},{"title":"impl","children":[{"title":"UserDaoImpl.class <span style='color:#111;'> 1.59KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"model","children":[{"title":"User.class <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false}],"spread":true},{"title":"test","children":[{"title":"TestUser.class <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false}],"spread":true},{"title":"util","children":[{"title":"DaoFactory.class <span style='color:#111;'> 385B </span>","children":null,"spread":false},{"title":"DatabaseBean.class <span style='color:#111;'> 1.51KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"WebContent","children":[{"title":"WEB-INF","children":[{"title":"lib","children":[{"title":"mysql-connector-java-8.0.19.jar <span style='color:#111;'> 2.25MB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"index.jsp <span style='color:#111;'> 1.10KB </span>","children":null,"spread":false},{"title":"result.jsp <span style='color:#111;'> 239B </span>","children":null,"spread":false},{"title":"META-INF","children":[{"title":"MANIFEST.MF <span style='color:#111;'> 39B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".project <span style='color:#111;'> 904B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明