SSH+Mysql学生信息管理系统
基于SSH和mysql的学生管理系统,有sql数据库文件。
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2016-07-20 00:21 stuInfoSystem_SSH_4
文件 2950 2016-07-20 00:16 stuInfoSystem_SSH_4.classpath
目录 0 2016-07-20 00:27 stuInfoSystem_SSH_4.myeclipse
文件 331 2012-11-24 18:20 stuInfoSystem_SSH_4.mymetadata
文件 1762 2016-07-20 00:16 stuInfoSystem_SSH_4.project
目录 0 2016-07-20 00:16 stuInfoSystem_SSH_4.settings
文件 503 2016-07-20 00:16 stuInfoSystem_SSH_4.settings.jsdtscope
文件 1040 2012-11-24 18:20 stuInfoSystem_SSH_4.settingscom.genuitec.eclipse.j2eedt.core.prefs
文件 364 2016-07-20 00:16 stuInfoSystem_SSH_4.settingsorg.eclipse.jdt.core.prefs
文件 567 2016-07-20 00:17 stuInfoSystem_SSH_4.settingsorg.eclipse.wst.common.component
文件 252 2016-07-20 00:16 stuInfoSystem_SSH_4.settingsorg.eclipse.wst.common.project.facet.core.xml
文件 49 2016-07-20 00:16 stuInfoSystem_SSH_4.settingsorg.eclipse.wst.jsdt.ui.superType.container
文件 6 2016-07-20 00:16 stuInfoSystem_SSH_4.settingsorg.eclipse.wst.jsdt.ui.superType.name
目录 0 2016-07-20 00:26 stuInfoSystem_SSH_4WebRoot
目录 0 2012-11-24 18:19 stuInfoSystem_SSH_4WebRootmeta-INF
文件 39 2012-11-20 19:41 stuInfoSystem_SSH_4WebRootmeta-INFMANIFEST.MF
目录 0 2016-07-20 00:14 stuInfoSystem_SSH_4WebRootWEB-INF
目录 0 2016-07-20 00:20 stuInfoSystem_SSH_4WebRootWEB-INFclasses
文件 2950 2016-07-20 00:20 stuInfoSystem_SSH_4WebRootWEB-INFclasseseans.xml
目录 0 2016-07-20 00:17 stuInfoSystem_SSH_4WebRootWEB-INFclassescom
目录 0 2016-07-20 00:17 stuInfoSystem_SSH_4WebRootWEB-INFclassescomlk
目录 0 2016-07-20 00:17 stuInfoSystem_SSH_4WebRootWEB-INFclassescomlkaction
文件 3655 2016-07-20 00:17 stuInfoSystem_SSH_4WebRootWEB-INFclassescomlkactionStudentAction.class
文件 777 2016-07-20 00:17 stuInfoSystem_SSH_4WebRootWEB-INFclassescomlkactionStudentActionTest.class
文件 2181 2016-07-20 00:17 stuInfoSystem_SSH_4WebRootWEB-INFclassescomlkactionUserAction.class
目录 0 2016-07-20 00:17 stuInfoSystem_SSH_4WebRootWEB-INFclassescomlkdao
文件 367 2016-07-20 00:17 stuInfoSystem_SSH_4WebRootWEB-INFclassescomlkdaoStudentDao.class
文件 286 2016-07-20 00:17 stuInfoSystem_SSH_4WebRootWEB-INFclassescomlkdaoUserDao.class
目录 0 2016-07-20 00:17 stuInfoSystem_SSH_4WebRootWEB-INFclassescomlkdaoimpl
文件 2908 2016-07-20 00:17 stuInfoSystem_SSH_4WebRootWEB-INFclassescomlkdaoimplStudentDaoImpl.class
文件 2149 2016-07-20 00:17 stuInfoSystem_SSH_4WebRootWEB-INFclassescomlkdaoimplUserDaoImpl.class
............此处省略96个文件信息
package com.lk.action;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Scope;
import org.springframework.context.support.ClassPathxmlApplicationContext;
import org.springframework.stereotype.Component;
import com.lk.model.Student;
import com.lk.model.User;
import com.lk.service.StudentManager;
import com.lk.service.UserManager;
import com.lk.vo.Info;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;
@Component(“student“)
@Scope(“prototype“)
public class StudentAction extends ActionSupport implements ModelDriven{
private Info info = new Info();
private StudentManager studentManager;
private List students;
public List getStudents() {
return students;
}
public void setStudents(List students) {
this.students = students;
}
public StudentManager getStudentManager() {
return studentManager;
}
@Resource(name=“studentManager“)
public void setStudentManager(StudentManager studentManager) {
this.studentManager = studentManager;
}
public Info getInfo() {
return info;
}
public void setInfo(Info info) {
this.info = info;
}
/**
* 增加学生信息
* @return
* @throws Exception
*/
public String add() throws Exception{
Student stu = new Student();
stu.setId(info.getId());
stu.setSid(info.getSid());
stu.setName(info.getName());
stu.setCollege(info.getCollege());
stu.setProfession(info.getProfession());
studentManager.add(stu);
return “success“;
}
/**
* 查询学生信息
* @return
* @throws Exception
*/
public String list() throws Exception{
this.students = this.studentManager.getStudents();
return “list“;
}
/**
* 获取需要删除学生信息的学号
* @return
* @throws Exception
*/
public String numberlistfordelete() throws Exception{
this.students = this.studentManager.getStudents();
return “numberlistfordelete“;
}
/**
* 获取需要修改学生信息的学号
* @return
* @throws Exception
*/
public String numberlistformodify() throws Exception{
this.students = this.studentManager.getStudents();
return “numberlistformodify“;
}
/**
* 删除学生信息
* @return
* @throws Exception
*/
public String delete() throws Exception{
studentManager.delete(Integer.parseInt(info.getSelect()));
return “delete“;
}
/**
* 更新学生信息
* @return
* @throws Exception
*/
public String modify() throws Exception{
Student stu = new Student();
stu.setCollege(info.getCollege());
stu.setName(info.getName());
stu.setProfession(info.getProfession());
stu.setSid(info.getSid());
System.out.println(stu.getCollege()+ “ “ +stu.getProfession() + “ “+ stu.getName()+“ “+ stu.getSid());
studentManager.update(stu.getCollege() stu.getProfession() stu.getName() stu.getSid());
return “modify“;
}
public object getModel() {
// T
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2016-07-20 00:21 stuInfoSystem_SSH_4
文件 2950 2016-07-20 00:16 stuInfoSystem_SSH_4.classpath
目录 0 2016-07-20 00:27 stuInfoSystem_SSH_4.myeclipse
文件 331 2012-11-24 18:20 stuInfoSystem_SSH_4.myme
文件 1762 2016-07-20 00:16 stuInfoSystem_SSH_4.project
目录 0 2016-07-20 00:16 stuInfoSystem_SSH_4.settings
文件 503 2016-07-20 00:16 stuInfoSystem_SSH_4.settings.jsdtscope
文件 1040 2012-11-24 18:20 stuInfoSystem_SSH_4.settingscom.genuitec.eclipse.j2eedt.core.prefs
文件 364 2016-07-20 00:16 stuInfoSystem_SSH_4.settingsorg.eclipse.jdt.core.prefs
文件 567 2016-07-20 00:17 stuInfoSystem_SSH_4.settingsorg.eclipse.wst.common.component
文件 252 2016-07-20 00:16 stuInfoSystem_SSH_4.settingsorg.eclipse.wst.common.project.facet.core.xm
文件 49 2016-07-20 00:16 stuInfoSystem_SSH_4.settingsorg.eclipse.wst.jsdt.ui.superType.container
文件 6 2016-07-20 00:16 stuInfoSystem_SSH_4.settingsorg.eclipse.wst.jsdt.ui.superType.name
目录 0 2016-07-20 00:26 stuInfoSystem_SSH_4WebRoot
目录 0 2012-11-24 18:19 stuInfoSystem_SSH_4WebRootme
文件 39 2012-11-20 19:41 stuInfoSystem_SSH_4WebRootme
目录 0 2016-07-20 00:14 stuInfoSystem_SSH_4WebRootWEB-INF
目录 0 2016-07-20 00:20 stuInfoSystem_SSH_4WebRootWEB-INFclasses
文件 2950 2016-07-20 00:20 stuInfoSystem_SSH_4WebRootWEB-INFclasseseans.xm
目录 0 2016-07-20 00:17 stuInfoSystem_SSH_4WebRootWEB-INFclassescom
目录 0 2016-07-20 00:17 stuInfoSystem_SSH_4WebRootWEB-INFclassescomlk
目录 0 2016-07-20 00:17 stuInfoSystem_SSH_4WebRootWEB-INFclassescomlkaction
文件 3655 2016-07-20 00:17 stuInfoSystem_SSH_4WebRootWEB-INFclassescomlkactionStudentAction.class
文件 777 2016-07-20 00:17 stuInfoSystem_SSH_4WebRootWEB-INFclassescomlkactionStudentActionTest.class
文件 2181 2016-07-20 00:17 stuInfoSystem_SSH_4WebRootWEB-INFclassescomlkactionUserAction.class
目录 0 2016-07-20 00:17 stuInfoSystem_SSH_4WebRootWEB-INFclassescomlkdao
文件 367 2016-07-20 00:17 stuInfoSystem_SSH_4WebRootWEB-INFclassescomlkdaoStudentDao.class
文件 286 2016-07-20 00:17 stuInfoSystem_SSH_4WebRootWEB-INFclassescomlkdaoUserDao.class
目录 0 2016-07-20 00:17 stuInfoSystem_SSH_4WebRootWEB-INFclassescomlkdaoimpl
文件 2908 2016-07-20 00:17 stuInfoSystem_SSH_4WebRootWEB-INFclassescomlkdaoimplStudentDaoImpl.class
文件 2149 2016-07-20 00:17 stuInfoSystem_SSH_4WebRootWEB-INFclassescomlkdaoimplUserDaoImpl.class
............此处省略96个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)