• 大小: 2.15MB
    文件类型: .zip
    金币: 2
    下载: 1 次
    发布日期: 2023-11-20
  • 语言: Java
  • 标签: MVC  JAVA  WEB  课程设计  

资源简介

1. 登陆界面:验证账号密码是否正确,背景图片轮播 2. 操作总界面:实现增删改查 3. 增加学生信息界面:增加信息数据 4. 查找学生信息界面 (1) 根据学号查找:返回学生信息 (2) 查找全部: 返回学生信息 5. 修改学生信息界面:修改信息数据 6. 删除学生信息界面:删除信息数据 关注微信公众号:让我爱上它Computer

资源截图

代码片段和文件信息

package AddStudent;

import java.io.IOException;
import Student.studentsx;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import Student.Student;
@WebServlet(“/AddServlet“)
public class AddServlet extends HttpServlet {
private static final long serialVersionUID = 1L;     
protected void doPost(HttpServletRequest request HttpServletResponse response) throws ServletException IOException {
request.setCharacterEncoding(“utf-8“);
response.setContentType(“text/html;charset=utf-8“);
Student student=new Student();
student.setAdress(request.getParameter(“adress“));
student.setAge(Integer.parseInt(request.getParameter(“age“)));
student.setGender(request.getParameter(“gender“));
student.setId(request.getParameter(“id“));
student.setName(request.getParameter(“name“));
student.setPhone(request.getParameter(“phone“));
student.setQQ(request.getParameter(“QQ“));
String choise=request.getParameter(“field_name“);
if(“Add“.equals(choise)) {
new studentsx().addStudent(student);
response.getWriter().write(“ript language=javascript>alert(‘修改成功!‘);ript>“);
}else if(“Change“.equals(choise)) {
if(new studentsx().updateStudent(student)) {
response.getWriter().write(“ript language=javascript>alert(‘修改成功!‘);ript>“);
}else {
response.getWriter().write(“ript language=javascript>alert(‘修改失败,重新输入!‘);;ript>“);
}
}
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-12-27 21:25  -Student-management-system--Javaweb-master\
     文件         278  2018-08-23 08:36  -Student-management-system--Javaweb-master\.gitignore
     文件      718379  2018-08-23 08:36  -Student-management-system--Javaweb-master\Description document.docx
     目录           0  2018-08-23 08:36  -Student-management-system--Javaweb-master\Design sketch\
     文件      941529  2018-08-23 08:36  -Student-management-system--Javaweb-master\Design sketch\1.png
     文件       38514  2018-08-23 08:36  -Student-management-system--Javaweb-master\Design sketch\2.png
     文件       31631  2018-08-23 08:36  -Student-management-system--Javaweb-master\Design sketch\3.png
     文件       21161  2018-08-23 08:36  -Student-management-system--Javaweb-master\Design sketch\4.png
     文件         688  2018-08-23 08:36  -Student-management-system--Javaweb-master\README.md
     目录           0  2018-08-23 08:36  -Student-management-system--Javaweb-master\Student\
     目录           0  2018-08-23 08:36  -Student-management-system--Javaweb-master\Student\src\
     目录           0  2018-08-23 08:36  -Student-management-system--Javaweb-master\Student\src\AddStudent\
     文件        1595  2018-08-23 08:36  -Student-management-system--Javaweb-master\Student\src\AddStudent\AddServlet.java
     目录           0  2018-08-23 08:36  -Student-management-system--Javaweb-master\Student\src\background\
     文件        1631  2018-08-23 08:36  -Student-management-system--Javaweb-master\Student\src\background\LoginServlet.java
     目录           0  2018-08-23 08:36  -Student-management-system--Javaweb-master\Student\src\DeleteStudent\
     文件        1126  2018-08-23 08:36  -Student-management-system--Javaweb-master\Student\src\DeleteStudent\DeleteServlet.java
     目录           0  2018-08-23 08:36  -Student-management-system--Javaweb-master\Student\src\LookStudent\
     文件        1248  2018-08-23 08:36  -Student-management-system--Javaweb-master\Student\src\LookStudent\LookServlet.java
     目录           0  2018-08-23 08:36  -Student-management-system--Javaweb-master\Student\src\Student\
     文件        1117  2018-08-23 08:36  -Student-management-system--Javaweb-master\Student\src\Student\Student.java
     文件         415  2018-08-23 08:36  -Student-management-system--Javaweb-master\Student\src\Student\StudentOperator.java
     文件        3672  2018-08-23 08:36  -Student-management-system--Javaweb-master\Student\src\Student\studentsx.java
     文件        1081  2018-08-23 08:36  -Student-management-system--Javaweb-master\Student\src\Student\xmlUtil.java
     目录           0  2018-08-23 08:36  -Student-management-system--Javaweb-master\Student\src\Test\
     文件         547  2018-08-23 08:36  -Student-management-system--Javaweb-master\Student\src\Test\TestStudent.java
     目录           0  2018-08-23 08:36  -Student-management-system--Javaweb-master\Student\WebContent\
     文件        2284  2018-08-23 08:36  -Student-management-system--Javaweb-master\Student\WebContent\AddOrUpdateStudent.html
     目录           0  2018-08-23 08:36  -Student-management-system--Javaweb-master\Student\WebContent\css\
     文件         826  2018-08-23 08:36  -Student-management-system--Javaweb-master\Student\WebContent\css\style.css
     文件        1050  2018-08-23 08:36  -Student-management-system--Javaweb-master\Student\WebContent\DeleteStudent.html
............此处省略19个文件信息

评论

共有 条评论