资源简介
【摘要】 J2EE技术无疑是当今因特网应用的最佳技术方案之一,围绕J2EE技术的应用性,也产生了大量的Web开发框架、中间层开发框架、数据层开发框架,它们极大地提升了J2EE技术的易用性[1]。本文描述了J2EE的相关技术,比如Servlet,JSP,Struts,Hibernate等,并用这些技术完成一个基于Web的教学管理系统。
【关键词】 Servlet,JSP,Struts,Hibernate,MVC,教学管理系统。

代码片段和文件信息
package com.jspdev.biyesheji;
import java.io.IOException;
//import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class addStudentServlet extends HttpServlet {
/**
*
*/
private static final long serialVersionUID = 1L;
/**
* Constructor of the object.
*/
public addStudentServlet() {
super();
}
/**
* Destruction of the servlet.
*/
public void destroy() {
super.destroy(); // Just puts “destroy“ string in log
// Put your code here
}
/**
* The doGet method of the servlet.
*
* This method is called when a form has its tag value method equals to get.
*
* @param request the request send by the client to the server
* @param response the response send by the server to the client
* @throws ServletException if an error occurred
* @throws IOException if an error occurred
*/
public void doGet(HttpServletRequest request HttpServletResponse response)
throws ServletException IOException {
response.setContentType(“text/html“);
// PrintWriter out = response.getWriter();
try{
Student student=new Student();
student.setId(request.getParameter(“id“));
student.setName(request.getParameter(“name“));
student.setSex(request.getParameter(“sex“));
student.setCollege(request.getParameter(“college“));
student.setDepartment(request.getParameter(“department“));
student.setInTime(request.getParameter(“inTime“));
student.setOutTime(request.getParameter(“outTime“));
student.setPassword(request.getParameter(“id“));
student.setAge(Long.parseLong(“0“));
student.setAddress(““);
student.setPhone(““);
if(!(student.isTrue(request.getParameter(“id“))))
Student.addStudent(student);
}
catch(Exception e){}
javax.servlet.RequestDispatcher dis=request.getRequestDispatcher(“../form/addStudent.jsp“);
dis.forward(request response);
}
/**
* The doPost method of the servlet.
*
* This method is called when a form has its tag value method equals to post.
*
* @param request the request send by the client to the server
* @param response the response send by the server to the client
* @throws ServletException if an error occurred
* @throws IOException if an error occurred
*/
public void doPost(HttpServletRequest request HttpServletResponse response)
throws ServletException IOException {
doGet(requestresponse);
}
/**
* Initialization of the servlet.
*
* @throws ServletException if an error occurs
*/
public void init() throws ServletException {
// Put your code here
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 976 2008-04-29 22:06 Java.biyeshejijiaoxueguanli@www.aspjzy.com\biyesheji\.classpath
文件 193 2008-04-28 22:56 Java.biyeshejijiaoxueguanli@www.aspjzy.com\biyesheji\.hibernateSynchronizer3\config.properties
文件 499 2008-03-03 17:56 Java.biyeshejijiaoxueguanli@www.aspjzy.com\biyesheji\.myhibernatedata
文件 300 2008-05-11 12:16 Java.biyeshejijiaoxueguanli@www.aspjzy.com\biyesheji\.myme
文件 262 2008-03-03 17:54 Java.biyeshejijiaoxueguanli@www.aspjzy.com\biyesheji\.mystrutsdata
文件 1512 2008-04-27 17:25 Java.biyeshejijiaoxueguanli@www.aspjzy.com\biyesheji\.project
文件 2787 2008-05-20 22:39 Java.biyeshejijiaoxueguanli@www.aspjzy.com\biyesheji\src\com\jspdev\biyesheji\addStudentServlet.java
文件 2664 2008-05-20 22:42 Java.biyeshejijiaoxueguanli@www.aspjzy.com\biyesheji\src\com\jspdev\biyesheji\addTeacherServlet.java
文件 5432 2008-04-28 22:58 Java.biyeshejijiaoxueguanli@www.aspjzy.com\biyesheji\src\com\jspdev\biyesheji\ba
文件 7518 2008-04-28 22:58 Java.biyeshejijiaoxueguanli@www.aspjzy.com\biyesheji\src\com\jspdev\biyesheji\ba
文件 3841 2008-04-28 22:58 Java.biyeshejijiaoxueguanli@www.aspjzy.com\biyesheji\src\com\jspdev\biyesheji\ba
文件 7578 2008-03-03 18:01 Java.biyeshejijiaoxueguanli@www.aspjzy.com\biyesheji\src\com\jspdev\biyesheji\ba
文件 2345 2008-03-03 18:00 Java.biyeshejijiaoxueguanli@www.aspjzy.com\biyesheji\src\com\jspdev\biyesheji\ba
文件 4237 2008-04-28 23:21 Java.biyeshejijiaoxueguanli@www.aspjzy.com\biyesheji\src\com\jspdev\biyesheji\ba
文件 7555 2008-04-28 23:18 Java.biyeshejijiaoxueguanli@www.aspjzy.com\biyesheji\src\com\jspdev\biyesheji\ba
文件 2958 2008-05-08 01:32 Java.biyeshejijiaoxueguanli@www.aspjzy.com\biyesheji\src\com\jspdev\biyesheji\ba
文件 7387 2008-04-27 16:53 Java.biyeshejijiaoxueguanli@www.aspjzy.com\biyesheji\src\com\jspdev\biyesheji\ba
文件 5988 2008-04-28 23:21 Java.biyeshejijiaoxueguanli@www.aspjzy.com\biyesheji\src\com\jspdev\biyesheji\ba
文件 7260 2008-04-28 23:21 Java.biyeshejijiaoxueguanli@www.aspjzy.com\biyesheji\src\com\jspdev\biyesheji\ba
文件 7308 2008-05-08 01:32 Java.biyeshejijiaoxueguanli@www.aspjzy.com\biyesheji\src\com\jspdev\biyesheji\ba
文件 7577 2008-04-28 22:59 Java.biyeshejijiaoxueguanli@www.aspjzy.com\biyesheji\src\com\jspdev\biyesheji\ba
文件 5165 2008-05-08 01:32 Java.biyeshejijiaoxueguanli@www.aspjzy.com\biyesheji\src\com\jspdev\biyesheji\ba
文件 7577 2008-04-28 22:59 Java.biyeshejijiaoxueguanli@www.aspjzy.com\biyesheji\src\com\jspdev\biyesheji\ba
文件 26107 2008-03-03 18:01 Java.biyeshejijiaoxueguanli@www.aspjzy.com\biyesheji\src\com\jspdev\biyesheji\ba
文件 2325 2008-05-18 19:53 Java.biyeshejijiaoxueguanli@www.aspjzy.com\biyesheji\src\com\jspdev\biyesheji\changeGradeServlet.java
文件 1285 2008-05-06 03:12 Java.biyeshejijiaoxueguanli@www.aspjzy.com\biyesheji\src\com\jspdev\biyesheji\Course.hbm.xm
文件 2990 2008-05-20 22:34 Java.biyeshejijiaoxueguanli@www.aspjzy.com\biyesheji\src\com\jspdev\biyesheji\Course.java
文件 2710 2008-05-19 02:01 Java.biyeshejijiaoxueguanli@www.aspjzy.com\biyesheji\src\com\jspdev\biyesheji\courseInfoServlet.java
文件 320 2008-03-03 18:01 Java.biyeshejijiaoxueguanli@www.aspjzy.com\biyesheji\src\com\jspdev\biyesheji\dao\CourseDAO.java
文件 314 2008-03-03 18:01 Java.biyeshejijiaoxueguanli@www.aspjzy.com\biyesheji\src\com\jspdev\biyesheji\dao\GradeDAO.java
............此处省略312个文件信息
- 上一篇:java 计算数学表达式
- 下一篇:哈工大同义词词林相似度计算javad代码
相关资源
- JSP企业人事管理系统设计(源代码+论
- 实现一个图书管理系统
- JAVA JSP公司财务管理系统 源代码 论文
- JSP+MYSQL旅行社管理信息系统
- JSP,SQL,MVC的选课系统
- 基于JSP的学生宿舍管理系统(源码 数
- JSP选课管理系统
- mysql jsp网站源码下载
- JSP做的化妆品商城
- Jsp购物车实例
- 基于JSP的校友信息管理系统(添加数
- 基于jsp的bbs论坛 非常详细
- java Servlet投票实例
- jsp oracle通讯录
- JSP学生信息管理系统 Mysql数据库
- 使用jsp servlet做的投票系统
- JSP登陆验证 实现JSP用户名 密码 验
- jsp基于servlet 图书馆管理系统
- jsp学生成绩管理系统.rar
- 在线考试系统源代码(jsp)
- 超级好的纯jsp写的聊天室
- JSP 网上购物网页项目
- JSP+mysql新闻发布系统.rar
- jsp 学生信息管理系统设计与实现
- jsp与SQL Server数据库实现的客户注册登
- 简易教学管理系统(jsp spring struts h
- 学生信息管理系统 JSP MySQL
- jsp ajax 三级联动菜单
- jsp新闻公告与最新消息系统(具备添
- JSP课程设计-留言本 jsp mysql tomcat实现
评论
共有 条评论