您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 项目/工程管理 > javaee-期末报告
考查课程报告课程名称:JavaEE技术学院:信息工程与自动化学院专业年级:2010级计算机系一班学号:学生姓名:指导教师:杨云飞日期:2012-12-30期末考查结果评定评分项目分值得分○1报告条理清晰,内容详实,体会深刻40○2报告格式符合规范10○3程序符合要求40○4界面美观,功能有扩充10评语:成绩:指导教师签字:评定日期:年月日目录1.课程目的.......................................................................................................................................42.要求与内容...................................................................................................................................43.运行环境.....................................................................................................................................44.设计及实现...................................................................................................................................44.1程序说明:........................................................................................................................44.2设计思路:........................................................................................................................54.3系统程序流程图及层次模块图:....................................................................................54.4程序代码:........................................................................................................................65、数据表结构...............................................................................................................................426、程序运行截图...........................................................................................................................436.1截图...................................................................................................................................436.2新增加功能......................................................................................................................477.总结和体会...............................................................................................................................478.参考文献.....................................................................................................................................4941.课程目的学生通过学习该课程后,着重应掌握跨平台WEB编程技术的知识和技能,主要掌握jsp、Servlet、JavaBean、JDBC、数据库连接池、MyEclipse环境、EL、JSTL核心标签库、TOMCAT容器、MVC架构等基本知识和基本技能,在知识、能力和素质等方面达到能够独立的从事WEB服务器架构和服务器端软件开发的目标,本课程在人才培养过程中占有重要的不可替代的地位及作用,它把各专业基础知识综合在一起,形成一个培养提高学生专业能力的好课程,为同学走向社会、就业等奠定了坚实的自信心和牢固专业知识,极大地提高同学在社会就业竞争中的竞争力。2.要求与内容按照MVC设计模式,以5层的分层结构设计实现……管理。数据表需自行设计建立,数据库连接采用连接池的方式;view层主要以JSP页面方式实现,在页面中采用EL、JSTL标签库,并采用页面组装的方式合成top、left、bottom区域的内容;Control层用Servlet实现;Model层用分层方式实现,分为VALUE类、DAO的接口、接口实现类和工厂、Business的接口、接口实现类和工厂,数据库连接工厂。3.运行环境Myeclipse10、SQLServer20084.设计及实现4.1程序说明:本程序在十五章MVC原有的基础上有增加了新闻管理的功能。能够实现新闻的观看、编辑新闻、删除新闻、上传新闻等功能。54.2设计思路:自设计新闻模块时,仿照了第四个实验的方法,采用mvc模式进行设计。4.3系统程序流程图及层次模块图:增加员工系统主页面修改员工删除员工查看员工增加新闻新闻管理链接查看新闻删除新闻修改新闻员工主页面64.4程序代码:Com.city.oa.action中EmployeeMainAction:packagecom.city.oa.action;importjava.io.IOException;importjavax.servlet.ServletException;importjavax.servlet.http.HttpServlet;importjavax.servlet.http.HttpServletRequest;importjavax.servlet.http.HttpServletResponse;importcom.city.oa.business.*;importcom.city.oa.factory.*;publicclassEmployeeModifyActionextendsHttpServlet{privatestaticfinallongserialVersionUID=1L;publicEmployeeModifyAction(){super();}/***Destructionoftheservlet.br*/publicvoiddestroy(){super.destroy();//Justputsdestroystringinlog//Putyourcodehere}publicvoiddoGet(HttpServletRequestrequest,HttpServletResponseresponse)throwsServletException,IOException{doPost(request,response);}publicvoiddoPost(HttpServletRequestrequest,HttpServletResponseresponse)throwsServletException,IOException{request.setCharacterEncoding(gb2312);Stringid=request.getParameter(empid);Stringname=request.getParameter(name);Stringpassword=request.getParameter(password);StringageStr=request.getParameter(age);intage=Integer.parseInt(ageStr);IEmployeeemp=BussinessFactory.getEmployee();try{emp.modify(id,name,password,age);}catch(Exceptione)7{System.out.println(modifyEmployeeerror:+e.getMessage());}response.sendRedirect(employee/main.do);}publicvoidinit()throwsServletException{//Putyourcodehere}}EmployeeAddAction:packagecom.city.oa.action;importjava.io.IOException;importjavax.servlet.ServletException;importjavax.servlet.http.HttpServlet;importjavax.servlet.http.HttpServletRequest;importjavax.servlet.http.HttpServletResponse;importcom.city.oa.business.*;importcom.city.oa.factory.*;publicclassEmployeeModifyActionextendsHttpServlet{privatestaticfinallongserialVersionUID=1L;publicEmployeeModifyAction(){super();}/***Destructionoftheservlet.br*/publicvoiddestroy(){super.destroy();//Justputsdestroystringinlog//Putyourcodehere}publicvoiddoGet(HttpServletRequestrequest,HttpServletResponseresponse)throwsServletException,IOException{doPost(request,response);}publicvoiddoPost(HttpServletRequestrequest,HttpServletResponseresponse)throwsServletException,IOException{request.setCharacterEncoding(gb2312);Stringid=request.getParameter(empid);Stringname=request.getParameter(name);Stringpassword=request.getParameter(password);StringageStr=request.getParameter(age);intage=I
本文标题:javaee-期末报告
链接地址:https://www.777doc.com/doc-4233630 .html