• 大小: 4.55MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-09-17
  • 语言: 其他
  • 标签:

资源简介

struts2用户注册程序 适用于初学者

资源截图

代码片段和文件信息

package com.xx.wu.Action;

import javax.servlet.ServletRequest;

import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionSupport;
import com.xx.wu.service.UserService;
import com.xx.wu.serviceImpl.UserServiceImpl;

public class RegisterAction extends ActionSupport {

public String execute() {


ServletRequest request = ServletActionContext.getRequest();

String username = request.getParameter(“username“);
String password = request.getParameter(“password“);
UserService userService = new UserServiceImpl();
if (userService.registerSuccess(username password)) {
return SUCCESS;
}else {
return INPUT;
}

}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       1215  2010-11-03 10:43  StrutsRegister\.classpath

     文件        315  2010-11-03 08:31  StrutsRegister\.mymetadata

     文件       1232  2010-11-02 17:16  StrutsRegister\.project

     文件        694  2010-11-03 09:58  StrutsRegister\src\com\xx\wu\Action\RegisterAction.java

     文件        252  2010-11-02 15:17  StrutsRegister\src\com\xx\wu\Dao\UserDao.java

     文件       1989  2010-11-02 16:24  StrutsRegister\src\com\xx\wu\DaoImpl\UserDaoImpl.java

     文件        489  2010-11-02 15:14  StrutsRegister\src\com\xx\wu\model\User.java

     文件        209  2010-11-02 15:49  StrutsRegister\src\com\xx\wu\service\UserService.java

     文件        810  2010-11-02 15:55  StrutsRegister\src\com\xx\wu\serviceImpl\UserServiceImpl.java

     文件        491  2010-11-03 10:21  StrutsRegister\src\struts.xml

     文件        823  2010-11-01 13:23  StrutsRegister\WebRoot\error.jsp

     文件        834  2010-11-02 16:59  StrutsRegister\WebRoot\index.jsp

     文件         39  2010-11-02 16:59  StrutsRegister\WebRoot\meta-INF\MANIFEST.MF

     文件        645  2010-11-02 17:25  StrutsRegister\WebRoot\register.jsp

     文件        827  2010-11-01 13:22  StrutsRegister\WebRoot\success.jsp

     文件       1121  2010-11-03 12:40  StrutsRegister\WebRoot\WEB-INF\classes\com\xx\wu\Action\RegisterAction.class

     文件        259  2010-11-03 12:40  StrutsRegister\WebRoot\WEB-INF\classes\com\xx\wu\Dao\UserDao.class

     文件       2513  2010-11-03 12:40  StrutsRegister\WebRoot\WEB-INF\classes\com\xx\wu\DaoImpl\UserDaoImpl.class

     文件        918  2010-11-03 12:40  StrutsRegister\WebRoot\WEB-INF\classes\com\xx\wu\model\User.class

     文件        225  2010-11-03 12:40  StrutsRegister\WebRoot\WEB-INF\classes\com\xx\wu\service\UserService.class

     文件       1151  2010-11-03 12:40  StrutsRegister\WebRoot\WEB-INF\classes\com\xx\wu\serviceImpl\UserServiceImpl.class

     文件        491  2010-11-03 10:21  StrutsRegister\WebRoot\WEB-INF\classes\struts.xml

     文件    1124276  2010-11-02 17:06  StrutsRegister\WebRoot\WEB-INF\lib\classes12.jar

     文件      57779  2010-11-02 17:06  StrutsRegister\WebRoot\WEB-INF\lib\commons-fileupload-1.2.1.jar

     文件      87776  2010-11-02 17:06  StrutsRegister\WebRoot\WEB-INF\lib\commons-io-1.3.2.jar

     文件     880993  2010-11-02 17:06  StrutsRegister\WebRoot\WEB-INF\lib\freemarker-2.3.16.jar

     文件     544021  2010-11-02 17:06  StrutsRegister\WebRoot\WEB-INF\lib\javassist-3.7.ga.jar

     文件     229145  2010-11-02 17:06  StrutsRegister\WebRoot\WEB-INF\lib\ognl-3.0.jar

     文件     756074  2010-11-02 17:06  StrutsRegister\WebRoot\WEB-INF\lib\struts2-core-2.1.8.1.jar

     文件    1557320  2010-11-02 17:06  StrutsRegister\WebRoot\WEB-INF\lib\xwork-core-2.1.6.jar

............此处省略30个文件信息

评论

共有 条评论

相关资源