91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 19.22MB
    文件類型: .zip
    金幣: 1
    下載: 0 次
    發布日期: 2023-07-09
  • 語言: 數據庫
  • 標簽: struts??hibernate??SSH??

資源簡介

大二時的SSH大作業,一款學生后臺管理系統,使用MySQL數據庫,希望對大家有幫助

資源截圖

代碼片段和文件信息

package?com.ywb.ssh.action;

import?java.util.List;

import?javax.annotation.Resource;

import?net.sf.json.JSONArray;
import?net.sf.json.JSONobject;

import?org.apache.struts2.ServletActionContext;
import?org.apache.struts2.convention.annotation.Action;
import?org.apache.struts2.convention.annotation.Namespace;
import?org.springframework.context.annotation.Scope;








import?com.opensymphony.xwork2.ActionSupport;
import?com.ywb.ssh.model.Grade;
import?com.ywb.ssh.model.PageBean;
import?com.ywb.ssh.service.GradeService;
import?com.ywb.ssh.service.StudentService;
import?com.ywb.ssh.util.ResponseUtil;
import?com.ywb.ssh.util.StringUtil;

@Scope(“prototype“)
@Namespace(“/“)
@Action(value=“grade“)
public?class?GradeAction?extends?ActionSupport{

/**
?*?
?*/
private?static?final?long?serialVersionUID?=?1L;

@Resource
private?GradeService?gradeService;
@Resource
private?StudentService?studentService;

private?String?page;
private?String?rows;
private?String?s_gradeName=““;
private?Grade?grade;
private?String?delIds;
private?String?id;

public?String?getPage()?{
return?page;
}


public?void?setPage(String?page)?{
this.page?=?page;
}


public?String?getRows()?{
return?rows;
}


public?void?setRows(String?rows)?{
this.rows?=?rows;
}


public?Grade?getGrade()?{
return?grade;
}


public?void?setGrade(Grade?grade)?{
this.grade?=?grade;
}


public?String?getS_gradeName()?{
return?s_gradeName;
}


public?void?setS_gradeName(String?s_gradeName)?{
this.s_gradeName?=?s_gradeName;
}


public?String?getDelIds()?{
return?delIds;
}


public?void?setDelIds(String?delIds)?{
this.delIds?=?delIds;
}



public?String?getId()?{
return?id;
}


public?void?setId(String?id)?{
this.id?=?id;
}


@Override
public?String?execute()?throws?Exception?{
PageBean?pageBean=new?PageBean(Integer.parseInt(page)Integer.parseInt(rows));
try{
if(grade==null){
grade=new?Grade();
}
grade.setGradeName(s_gradeName);
JSONobject?result=new?JSONobject();
List?gradeList=gradeService.gradeList(pageBean?grade);
JSONArray?jsonArray=new?JSONArray();
for(int?i=0;i Grade?grade=(Grade)gradeList.get(i);
JSONobject?jsonobject=new?JSONobject();
jsonobject.put(“id“?grade.getId());
jsonobject.put(“gradeName“?grade.getGradeName());
jsonobject.put(“gradeDesc“?grade.getGradeDesc());
jsonArray.add(jsonobject);
}
int?total=gradeService.gradeCount(grade);
result.put(“rows“?jsonArray);
result.put(“total“?total);
ResponseUtil.write(ServletActionContext.getResponse()?result);
}catch(Exception?e){
e.printStackTrace();
}
return?null;
}


public?String?delete()throws?Exception{
try{
JSONobject?result=new?JSONobject();
String?str[]=delIds.split(““);
for(int?i=0;i

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2017-06-16?21:13??學生信息后臺管理系統\
?????文件????????3330??2017-06-16?21:12??學生信息后臺管理系統\db.sql
?????目錄???????????0??2017-06-16?21:09??學生信息后臺管理系統\S2SHStudentInfoManager\
?????文件????????5558??2017-06-04?11:10??學生信息后臺管理系統\S2SHStudentInfoManager\.classpath
?????目錄???????????0??2017-06-04?10:33??學生信息后臺管理系統\S2SHStudentInfoManager\.myeclipse\
?????文件?????????339??2017-06-04?10:34??學生信息后臺管理系統\S2SHStudentInfoManager\.mymetadata
?????文件????????1829??2017-06-04?10:59??學生信息后臺管理系統\S2SHStudentInfoManager\.project
?????目錄???????????0??2017-06-16?21:09??學生信息后臺管理系統\S2SHStudentInfoManager\.settings\
?????文件?????????500??2017-06-04?10:34??學生信息后臺管理系統\S2SHStudentInfoManager\.settings\.jsdtscope
?????文件?????????140??2017-06-16?14:38??學生信息后臺管理系統\S2SHStudentInfoManager\.settings\com.genuitec.eclipse.core.prefs
?????文件?????????119??2017-06-15?20:03??學生信息后臺管理系統\S2SHStudentInfoManager\.settings\org.eclipse.core.resources.prefs
?????文件?????????395??2017-06-04?10:33??學生信息后臺管理系統\S2SHStudentInfoManager\.settings\org.eclipse.jdt.core.prefs
?????文件?????????504??2017-06-04?10:33??學生信息后臺管理系統\S2SHStudentInfoManager\.settings\org.eclipse.wst.common.component
?????文件?????????252??2017-06-04?10:34??學生信息后臺管理系統\S2SHStudentInfoManager\.settings\org.eclipse.wst.common.project.facet.core.xml
?????文件??????????49??2017-06-04?10:34??學生信息后臺管理系統\S2SHStudentInfoManager\.settings\org.eclipse.wst.jsdt.ui.superType.container
?????文件???????????6??2017-06-04?10:34??學生信息后臺管理系統\S2SHStudentInfoManager\.settings\org.eclipse.wst.jsdt.ui.superType.name
?????目錄???????????0??2017-06-16?21:09??學生信息后臺管理系統\S2SHStudentInfoManager\src\
?????文件????????3239??2017-06-11?21:06??學生信息后臺管理系統\S2SHStudentInfoManager\src\applicationContext.xml
?????目錄???????????0??2017-06-16?21:09??學生信息后臺管理系統\S2SHStudentInfoManager\src\com\
?????目錄???????????0??2017-06-16?21:09??學生信息后臺管理系統\S2SHStudentInfoManager\src\com\ywb\
?????目錄???????????0??2017-06-16?21:09??學生信息后臺管理系統\S2SHStudentInfoManager\src\com\ywb\ssh\
?????目錄???????????0??2017-06-16?21:09??學生信息后臺管理系統\S2SHStudentInfoManager\src\com\ywb\ssh\action\
?????文件????????4680??2017-06-04?15:21??學生信息后臺管理系統\S2SHStudentInfoManager\src\com\ywb\ssh\action\GradeAction.java
?????文件????????2457??2017-06-04?11:05??學生信息后臺管理系統\S2SHStudentInfoManager\src\com\ywb\ssh\action\LoginAction.java
?????文件????????5369??2017-06-16?01:09??學生信息后臺管理系統\S2SHStudentInfoManager\src\com\ywb\ssh\action\StudentAction.java
?????目錄???????????0??2017-06-16?21:09??學生信息后臺管理系統\S2SHStudentInfoManager\src\com\ywb\ssh\dao\
?????文件?????????478??2017-06-04?10:54??學生信息后臺管理系統\S2SHStudentInfoManager\src\com\ywb\ssh\dao\GradeDao.java
?????目錄???????????0??2017-06-16?21:09??學生信息后臺管理系統\S2SHStudentInfoManager\src\com\ywb\ssh\dao\impl\
?????文件????????2587??2017-06-04?10:54??學生信息后臺管理系統\S2SHStudentInfoManager\src\com\ywb\ssh\dao\impl\GradeDaoImpl.java
?????文件????????3839??2017-06-04?10:54??學生信息后臺管理系統\S2SHStudentInfoManager\src\com\ywb\ssh\dao\impl\StudentDaoImpl.java
?????文件????????1178??2017-06-04?11:05??學生信息后臺管理系統\S2SHStudentInfoManager\src\com\ywb\ssh\dao\impl\UserDaoImpl.java
............此處省略797個文件信息

評論

共有 條評論