基于struts的登陆注册源码

上传者: u012612399 | 上传时间: 2019-12-21 21:25:47 | 文件大小: 3.8MB | 文件类型: zip
1、用户登录页面,设为web应用的首页。页面中应该包括用户名和密码的输入框以及登录和注册按钮。 2、登录成功页面。页面中要包括“欢迎你,xxx”、“服务器处理结果:msg”(Action中封装的处理结果信息)和“服务器访问次数:n”这三行信息,其中,xxx为访问者在login页面提交的用户名, msg为服务器在判断用户名和密码一致后返回的信息(例如“登录成功”)或者为用户注册成功后返回的信息(例如“注册成功”),n为服务器访问次数的值。 3、登录失败页面。页面中要包括“服务器处理结果:msg”,其中msg为服务器在判断用户名和密码不一致后返回的信息(例如“用户名与密码不一致”)。

文件下载

资源详情

[{"title":"( 36 个子文件 3.8MB ) 基于struts的登陆注册源码","children":[{"title":"ActionApp","children":[{"title":"src","children":[{"title":"struts.xml <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"org","children":[{"title":"dao","children":[{"title":"DbConnection.java <span style='color:#111;'> 1.97KB </span>","children":null,"spread":false},{"title":"DbService.java <span style='color:#111;'> 2.57KB </span>","children":null,"spread":false}],"spread":true},{"title":"model","children":[{"title":"User.java <span style='color:#111;'> 371B </span>","children":null,"spread":false}],"spread":true},{"title":"action","children":[{"title":"LoginAction.java <span style='color:#111;'> 1.95KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":".classpath <span style='color:#111;'> 705B </span>","children":null,"spread":false},{"title":"build","children":[{"title":"classes","children":[{"title":"struts.xml <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"org","children":[{"title":"dao","children":[{"title":"DbConnection.class <span style='color:#111;'> 1.97KB </span>","children":null,"spread":false},{"title":"DbService.class <span style='color:#111;'> 3.21KB </span>","children":null,"spread":false}],"spread":true},{"title":"model","children":[{"title":"User.class <span style='color:#111;'> 713B </span>","children":null,"spread":false}],"spread":true},{"title":"action","children":[{"title":"LoginAction.class <span style='color:#111;'> 2.19KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".settings","children":[{"title":"org.eclipse.wst.jsdt.ui.superType.container <span style='color:#111;'> 49B </span>","children":null,"spread":false},{"title":"org.eclipse.wst.common.project.facet.core.xml <span style='color:#111;'> 305B </span>","children":null,"spread":false},{"title":"org.eclipse.core.resources.prefs <span style='color:#111;'> 122B </span>","children":null,"spread":false},{"title":"org.eclipse.wst.jsdt.ui.superType.name <span style='color:#111;'> 6B </span>","children":null,"spread":false},{"title":"org.eclipse.wst.common.component <span style='color:#111;'> 484B </span>","children":null,"spread":false},{"title":".jsdtscope <span style='color:#111;'> 503B </span>","children":null,"spread":false},{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 395B </span>","children":null,"spread":false}],"spread":true},{"title":"WebContent","children":[{"title":"META-INF","children":[{"title":"MANIFEST.MF <span style='color:#111;'> 39B </span>","children":null,"spread":false}],"spread":true},{"title":"login_error.jsp <span style='color:#111;'> 376B </span>","children":null,"spread":false},{"title":"regist_error.jsp <span style='color:#111;'> 401B </span>","children":null,"spread":false},{"title":"index.jsp <span style='color:#111;'> 1.90KB </span>","children":null,"spread":false},{"title":"regist_success.jsp <span style='color:#111;'> 462B </span>","children":null,"spread":false},{"title":"Login_success.jsp <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"WEB-INF","children":[{"title":"lib","children":[{"title":"xwork-core-2.3.4.1.jar <span style='color:#111;'> 613.98KB </span>","children":null,"spread":false},{"title":"commons-logging-1.1.1.jar <span style='color:#111;'> 59.26KB </span>","children":null,"spread":false},{"title":"struts2-core-2.3.4.1.jar <span style='color:#111;'> 765.17KB </span>","children":null,"spread":false},{"title":"commons-fileupload-1.2.2.jar <span style='color:#111;'> 58.19KB </span>","children":null,"spread":false},{"title":"commons-lang3-3.1.jar <span style='color:#111;'> 308.40KB </span>","children":null,"spread":false},{"title":"freemarker-2.3.19.jar <span style='color:#111;'> 909.34KB </span>","children":null,"spread":false},{"title":"ognl-3.0.5.jar <span style='color:#111;'> 222.47KB </span>","children":null,"spread":false},{"title":"commons-io-2.0.1.jar <span style='color:#111;'> 155.77KB </span>","children":null,"spread":false},{"title":"mysql-connector-java-5.0.8-bin.jar <span style='color:#111;'> 528.18KB </span>","children":null,"spread":false},{"title":"javassist-3.11.0.GA.jar <span style='color:#111;'> 599.81KB </span>","children":null,"spread":false}],"spread":true},{"title":"web.xml <span style='color:#111;'> 753B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".project <span style='color:#111;'> 1.02KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

  • kinichi2011 :
    运行了,跑得起来
    2018-05-14
  • bingdeng3276 :
    没有数据库
    2017-09-20
  • Eaton18 :
    不错,代码可以运行
    2016-11-07
  • 鸣兰听 :
    功能很好用,实现也很方便。只是个人觉得LoginAction里不需要定义user_这个变量,用hasSameUser验证没有注册过就可以直接dbService.addUser(user)方法把新的用户
    2015-03-10
  • junny232 :
    学习,借鉴了一下~~谢谢
    2014-06-26

免责申明

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