您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 绩效管理 > javaEE实验报告
JavaEE框架开发技术-实验报告西安科技大学《JAVAEE框架开发技术》实验报告学院:计算机科学与技术学院专业及班级:软件工程1202班学号:1208010212姓名:_黄子斌JavaEE框架开发技术-实验报告2015年12目录实验一struts基础实验..................................................................................................................31.实验类型...........................................................................................................................32.实验目的...........................................................................................................................33.实验要求...........................................................................................................................34.实验内容...........................................................................................................................31.Web.xml文件的配...................................................................................................32.struts.xml文件配置..................................................................................................43.Action的实现...........................................................................................................44.运行结果...................................................................................................................5实验二持久化层hibernate............................................................................................................61.实验类型...........................................................................................................................62.实验目的...........................................................................................................................63.实验要求...........................................................................................................................64.实验内容...........................................................................................................................61.hibernate.cfg.xml文件配置......................................................................................62.实体类和映射文件...................................................................................................73.运行结果.................................................................................................................10实验三SSM整合实验...................................................................................................................101.实验类型.........................................................................................................................102.实验目的.........................................................................................................................103.实验要求.........................................................................................................................104.实验内容.........................................................................................................................101.applicationContext.xml文件配置..........................................................................102.struts.xml文件配置...............................................................................................123.工程代码结构分析.................................................................................................124.运行结果...............................................................................................................13实验总结.........................................................................................................................................14JavaEE框架开发技术-实验报告实验一struts基础实验1.实验类型验证型2.实验目的掌握Struts2开发环境的搭建;理解Struts2工作流程;掌握Struts2的web.xml文件的配置;掌握config_browser插件的使用。3.实验要求搭建Struts2的开发环境;实现用户登录;使用log4j输出调试信息。4.实验内容1.Web.xml文件的配在该文件中主要配置默认启动的jsp界面,还有filter过滤器。使用Apache的StrutsPrepareAndExecuteFilter类进行拦截。?xmlversion=1.0encoding=UTF-8?web-appxmlns:xsi==:schemaLocation=://java.sun.com/xml/ns/javaee/web-app_3_0.xsdid=WebApp_IDversion=3.0display-namejavaweb16ValidateDemo/display-namewelcome-file-listwelcome-fileindex.jsp/welcome-file/welcome-file-listfilterfilter-namestruts2/filter-namefilter-classorg.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter/filter-class/filterfilter-mappingfilter-namestruts2/filter-nameJavaEE框架开发技术-实验报告url-pattern/*/url-pattern/filter-mapping/web-app2.struts.xml文件配置对action的拦截及使用com.javaweb.action.RegisterAction处理。?xmlversion=1.0encoding=UTF-8?!DOCTYPEstrutsPUBLIC-//ApacheSoftwareFoundation//DTDStrutsConfiguration2.3//EN=struts2extends=struts-default!--定义register的Action,其实现类为com.javaweb.action.RegisterAction--actionname=registerclass=com.javaweb.action.RegisterAction!--定义处理结果与视图资源之间的关系--resultname=success/result.jsp/resultresultname=input/register2.jsp/result/action/package/struts3.Action的实现主要核心处理功能。packagecom.javaweb.action;//导入关键类publicclassRegisterActionextendsActionSupport{privateString
本文标题:javaEE实验报告
链接地址:https://www.777doc.com/doc-7321675 .html