Java项目开发实验教学大纲
第 PAGE 28 页
1、Java程序设计、数据库原理与应用基本知识由学生自己复习;
2、Struts2基本知识
2.1 Struts2入门(Hello Someone)
(1)新建一个Web Project项目Struts2Demo,J2EE规范采用Java EE 5.0其目录结构如下:
(2)修改web.xml文件
将原来的web.xml文件内容清空,将下载到的Struts-2.1.6-all.zip解压,在app目录下找到struts2-blank-2.1.6.war,解压该文件,将其WEB-INF目录下的web.xml文件内容复制到Strust2Demo的web.xml中,内容如下:
?xml version=1.0 encoding=UTF-8?
web-app id=WebApp_9 version=2.4 xmlns=/xml/ns/j2ee xmlns:xsi=/2001/XMLSchema-instance xsi:schemaLocation=/xml/ns/j2ee /xml/ns/j2ee/web-app_2_4.xsd
display-nameStruts Blank/display-name
filter
filter-namestruts2/filter-name
原创力文档

文档评论(0)