資源簡(jiǎn)介
這是一個(gè)用ssh框架寫的增刪改查的小程序,對(duì)初學(xué)者有幫助
代碼片段和文件信息
package?com.jingan.index.action;
import?java.util.List;
import?javax.annotation.Resource;
import?org.springframework.context.annotation.Scope;
import?org.springframework.stereotype.Controller;
import?com.jingan.index.bean.Student;
import?com.jingan.index.services.IStudentServices;
/***
?*?[說(shuō)明/描述]
?*?@author?Mr.Li
?*?@date?2016-2-17?下午3:22:18
?*?@project?項(xiàng)目名稱
?*?@version?版本號(hào)
?*?@see?相關(guān)類
?*?@since?相關(guān)/版本
?*/
@Controller???@Scope(“prototype“)
public?class?StudentAction?{
@Resource(name=“studentServices“)
private?IStudentServices?studentServices;
private?List?studentlist;
private?Student?student;
private?int?sid;
/**
?*?
?*?[描述信息]?查詢所有的學(xué)生信息
?*?@author?張彪
?*?@date?2016-2-17?下午3:45:05?
?*?@return?liststudent?跳轉(zhuǎn)到展示學(xué)生信息頁(yè)面
?*/
public?String?findallstudent(){
studentlist=studentServices.findallstudent();
return?“l(fā)iststudent“;?
}
public?String?addstudent(){
studentServices.addstudent(student);
return?“add“;
}
public?String?deleteStudent(){
studentServices.deletestudent(sid);
return?“delete“;
}
public?String?findstudent(){
student=studentServices.findstudent(sid);
return?“findone“;
}
public?String?updatestudent(){
studentServices.updatestudent(student);
return?“update“;
}
public?List?getStudentlist()?{
return?studentlist;
}
public?void?setStudentlist(List?studentlist)?{
this.studentlist?=?studentlist;
}
public?Student?getStudent()?{
return?student;
}
public?void?setStudent(Student?student)?{
this.student?=?student;
}
public?int?getSid()?{
return?sid;
}
public?void?setSid(int?sid)?{
this.sid?=?sid;
}
}
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件????????529??2016-02-16?17:33??test\.classpath
?????文件????????285??2016-02-16?17:33??test\.myme
?????文件???????1747??2016-02-17?09:40??test\.project
?????文件????????500??2016-02-17?09:39??test\.settings\.jsdtscope
?????文件????????105??2016-02-17?16:33??test\.settings\org.eclipse.core.resources.prefs
?????文件????????364??2016-02-16?17:33??test\.settings\org.eclipse.jdt.core.prefs
?????文件????????450??2016-02-16?17:33??test\.settings\org.eclipse.wst.common.component
?????文件????????252??2016-02-16?17:33??test\.settings\org.eclipse.wst.common.project.facet.core.xm
?????文件?????????49??2016-02-16?17:33??test\.settings\org.eclipse.wst.jsdt.ui.superType.container
?????文件??????????6??2016-02-16?17:33??test\.settings\org.eclipse.wst.jsdt.ui.superType.name
?????文件???????1810??2016-02-17?16:50??test\src\com\jingan\index\action\StudentAction.java
?????文件????????451??2016-02-17?15:40??test\src\com\jingan\index\bean\student.hbm.xm
?????文件????????664??2016-02-17?16:31??test\src\com\jingan\index\bean\Student.java
?????文件???????1394??2016-02-17?16:26??test\src\com\jingan\index\dao\imp\StudentDao.java
?????文件????????553??2016-02-17?16:31??test\src\com\jingan\index\dao\IStudentDao.java
?????文件???????1126??2016-02-17?16:27??test\src\com\jingan\index\services\imp\StudentServices.java
?????文件????????534??2016-02-17?16:26??test\src\com\jingan\index\services\IStudentServices.java
?????文件???????1330??2016-02-17?15:08??test\src\ehcache.xm
?????文件???????1309??2016-02-17?15:08??test\src\struts.properties
?????文件????????270??2016-02-17?15:29??test\src\struts.xm
?????文件????????678??2016-02-17?16:42??test\src\struts_config\struts_student.xm
?????文件???????1206??2016-02-17?16:54??test\WebRoot\index.jsp
?????文件????????954??2016-02-17?16:28??test\WebRoot\login.jsp
?????文件?????????36??2016-02-16?17:33??test\WebRoot\me
?????文件???????1247??2016-02-17?16:55??test\WebRoot\showone.jsp
?????文件???????1436??2016-02-17?16:50??test\WebRoot\showstudent.jsp
?????文件???????4138??2016-02-17?15:33??test\WebRoot\WEB-INF\applicationContext\applicationContext.xm
?????文件???????2347??2016-02-17?16:50??test\WebRoot\WEB-INF\classes\com\jingan\index\action\StudentAction.class
?????文件????????930??2016-02-17?16:44??test\WebRoot\WEB-INF\classes\com\jingan\index\bean\Student.class
?????文件????????451??2016-02-17?15:40??test\WebRoot\WEB-INF\classes\com\jingan\index\bean\student.hbm.xm
............此處省略81個(gè)文件信息
評(píng)論
共有 條評(píng)論