Struts2_1_struts2运行环境的搭建
来源:互联网 发布:大数据的定义及特点 编辑:程序博客网 时间:2024/05/22 15:20
1)最少需要导入的jar包:
commons-fileupload-1.2.1.jar、commons-logging-1.0.4.jar、
freemarker-2.3.15.jar、ognl-2.7.3.jar、struts2-core-2.1.8.jar、
xwork-core-2.1.6.jar
2)web.xml文件的配置:
<?xml version="1.0" encoding="UTF-8"?><web-app id="WebApp_9" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"><filter><filter-name>struts2</filter-name><filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class></filter><filter-mapping><filter-name>struts2</filter-name><url-pattern>/*</url-pattern></filter-mapping><welcome-file-list><welcome-file>index.jsp</welcome-file></welcome-file-list></web-app>
3)struts.xml文件的配置:
<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd"><struts></struts>
运行程序,若控制台无错误提示,则struts2环境搭建成功。
3 0
- Struts2_1_struts2运行环境的搭建
- ASP运行环境的搭建
- J2EE运行环境的搭建
- J2EE运行环境的搭建
- Android运行环境的搭建
- Ajax的运行环境搭建
- php-运行环境的搭建
- Java运行环境的搭建
- Java运行环境的搭建
- java运行环境的搭建
- hadoop运行环境的搭建
- JAVA运行环境和J2EE运行环境的搭建
- JAVA运行环境和J2EE运行环境的搭建
- JAVA运行环境和J2EE运行环境的搭建
- JAVA运行环境和J2EE运行环境的搭建
- JAVA运行环境和J2EE运行环境的搭建
- 细说JAVA运行环境和J2EE运行环境的搭建
- JAVA运行环境和J2EE运行环境的搭建
- Code Review(二)
- 湖大训练赛8 Bad Signal
- 关于Class.forName()
- id ,NSObject, id<NSObject>区别
- Let's go home+hdu+2sat问题的求解
- Struts2_1_struts2运行环境的搭建
- 工作中的问题解决 -- (win2003 asp.net) Session和带页面回传的方法无法正常使用解决方案
- 《Android 4高级编程》学习摘要
- a^b%c 的三种形式
- Instance method '-copyPath:toPath:handler:' not found (return type defaults to 'id')
- STL中unique函数的用法
- the Marvelous Land of Oz 49%
- 【竞品分析】腾讯QQ手机浏览器与UC手机浏览器产品对比
- hdu 1785 You Are All Excellent