資源簡介
這是基于SSH框架的簡單demo,里面詳細寫了關于SSH的框架搭建~~很適合學習哦!
代碼片段和文件信息
package?com.hy.action;
import?com.hy.service.LoginService;
import?com.opensymphony.xwork2.ActionSupport;
public?class?LoginAction?extends?ActionSupport?{
/**
?*?
?*/
private?static?final?long?serialVersionUID?=?1L;
private?LoginService?loginService;
private?String?userName;
private?String?password;
public?void?setLoginService(LoginService?loginService)?{
this.loginService?=?loginService;
}
public?String?getUserName()?{
return?userName;
}
public?void?setUserName(String?userName)?{
this.userName?=?userName;
}
public?String?getPassword()?{
return?password;
}
public?void?setPassword(String?password)?{
this.password?=?password;
}
@Override
public?String?execute()?throws?Exception?{
if?(loginService.isLogin(userName?password))?{
return?SUCCESS;
}?else?{
return?INPUT;
}
}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????????743??2016-03-21?16:22??TestDemo\.classpath
?????文件????????1041??2016-03-21?10:55??TestDemo\.project
?????文件?????????503??2016-03-21?10:55??TestDemo\.settings\.jsdtscope
?????文件?????????364??2016-03-21?10:55??TestDemo\.settings\org.eclipse.jdt.core.prefs
?????文件?????????476??2016-03-21?10:55??TestDemo\.settings\org.eclipse.wst.common.component
?????文件?????????305??2016-03-21?11:31??TestDemo\.settings\org.eclipse.wst.common.project.facet.core.xm
?????文件??????????49??2016-03-21?10:55??TestDemo\.settings\org.eclipse.wst.jsdt.ui.superType.container
?????文件???????????6??2016-03-21?10:55??TestDemo\.settings\org.eclipse.wst.jsdt.ui.superType.name
?????文件??????????39??2016-03-21?10:55??TestDemo\WebContent\me
?????文件??????443432??2016-03-21?17:05??TestDemo\WebContent\WEB-INF\lib\antlr-2.7.6.jar
?????文件????????4467??2016-03-21?14:44??TestDemo\WebContent\WEB-INF\lib\aopalliance.jar
?????文件???????43578??2016-03-21?14:43??TestDemo\WebContent\WEB-INF\lib\asm-3.3.jar
?????文件???????38275??2016-03-21?14:43??TestDemo\WebContent\WEB-INF\lib\asm-commons-3.3.jar
?????文件???????21503??2016-03-21?14:43??TestDemo\WebContent\WEB-INF\lib\asm-tree-3.3.jar
?????文件?????1545023??2016-03-21?14:44??TestDemo\WebContent\WEB-INF\lib\aspectjweaver.jar
?????文件??????324238??2016-03-21?14:44??TestDemo\WebContent\WEB-INF\lib\cglib-nodep-2.1_3.jar
?????文件??????559366??2016-03-21?17:05??TestDemo\WebContent\WEB-INF\lib\commons-collections-3.1.jar
?????文件??????148817??2016-03-21?14:44??TestDemo\WebContent\WEB-INF\lib\commons-dbcp-1.3.jar
?????文件???????59590??2016-03-21?14:43??TestDemo\WebContent\WEB-INF\lib\commons-fileupload-1.2.2.jar
?????文件??????159509??2016-03-21?14:43??TestDemo\WebContent\WEB-INF\lib\commons-io-2.0.1.jar
?????文件??????315805??2016-03-21?14:43??TestDemo\WebContent\WEB-INF\lib\commons-lang3-3.1.jar
?????文件???????38015??2016-03-21?14:44??TestDemo\WebContent\WEB-INF\lib\commons-logging-1.0.4.jar
?????文件???????96221??2016-03-21?14:44??TestDemo\WebContent\WEB-INF\lib\commons-pool-1.5.4.jar
?????文件??????313898??2016-03-21?17:05??TestDemo\WebContent\WEB-INF\lib\dom4j-1.6.1.jar
?????文件??????931168??2016-03-21?14:43??TestDemo\WebContent\WEB-INF\lib\freemarker-2.3.19.jar
?????文件?????3908818??2016-03-21?17:05??TestDemo\WebContent\WEB-INF\lib\hibernate3.jar
?????文件??????614203??2016-03-21?14:43??TestDemo\WebContent\WEB-INF\lib\javassist-3.11.0.GA.jar
?????文件??????597476??2016-03-21?17:05??TestDemo\WebContent\WEB-INF\lib\javassist-3.9.0.GA.jar
?????文件???????10899??2016-03-21?17:05??TestDemo\WebContent\WEB-INF\lib\jta-1.1.jar
?????文件??????391834??2016-03-21?14:44??TestDemo\WebContent\WEB-INF\lib\log4j-1.2.15.jar
?????文件??????481534??2016-03-21?17:05??TestDemo\WebContent\WEB-INF\lib\log4j-1.2.16.jar
............此處省略45個文件信息
評論
共有 條評論