[Trouble Shoot]Struts2文档教程Simple Setup一节中的问题

news/2024/7/3 14:54:38 标签: struts, 文档, application, freemarker, logging, templates

如果遵循Struts2文档教程Simple Setup一节的方法对Strust2的架构进行从头构建的话,那么在接下来的Hello World一节中构建的网站部署到Tomcat6上后将无法启动。原因是Simple Setup一节中说明的需要的库文件有:

 

The following files are a minium requirement for your application.

Filename Description
struts2-core.jar Framework library itself, found in distribution root directory
xwork.jar XWork 2 library on which Struts 2 is built (version 2.0 or later)
ognl.jar Object Graph Navigation Language (OGNL), the expression language used throughout the framework
freemarker.jar All UI tag templates are written in Freemarker (also a good option for your own views)
commons-logging.jar Commons logging, which the framework uses to support transparently logging to either Log4J or JDK 1.4+
web.xml Java web application configuration file that defines the filters (and other components) for your web application
struts.xml Framework configuration file that defines the actions, results, and interceptors for your application

 

但是实际上还需要commons-fileupload.jar,加入该库就能解决Hello World项目不能启动的问题


http://www.niftyadmin.cn/n/1277805.html

相关文章

IDEA+Maven 打jar包

IDEAMaven 打jar包 (包涵依赖jar) 最新修改 以前写的打包方式可能看起来有些繁琐,这里给出进一步简洁的解决方案简单粗暴 写在前面: 这两天一直在整(gu)理(dao)IDEA 用Maven打jar…

[Trouble Shoot]Struts2和Tile2

配置文件所在目录&#xff1a; /WEB-INF /web.xml /tiles.xml /classes /struts.xml 各配置文件的内容如下&#xff1a; web.xml <?xml version"1.0" encoding"UTF-8"?><web-app version"2.5" xmlns"http://java.sun.com/xm…

XDOJ1263 - 递推4

Description 圆周上有N个点。连接任意多条&#xff08;可能是0条&#xff09;不相交的弦&#xff08;共用端点也算相交&#xff09;共有多少种方案&#xff1f; Input 多组数据&#xff0c;每行一个数N&#xff08;N<1000&#xff09; Output 每行输出一个数&#xff0c…

应用层缓存技术-Http的强制缓存和协商缓存

1、Http强制缓存 强制缓存流程: 在第一次访问服务器获取到数据后&#xff0c;在数据过期之前不在向服务器发起请求获取数据&#xff1b;因此实现此 流程的核心就是如何知道数据什么时间过期。 强制缓存的过期时间是通过第一次访问服务器返回的响应头获取&#xff0c;在http1.0…

mybatis 时间范围查询

mybatis框架支持直接用>或<查询日期范围&#xff0c;如&#xff1a; and timer.create_time > #{startTime} and timer.create_time < #{endTime} 但这种方式&#xff0c;如果开始时间和结束时间是同一个日期&#xff0c;就查不出来了&#xff0c;一种解决方法是…

[Note]Spring MVC、hibernate validator和i18n(一)

本文是对spring samples中的mvc-basic项目的一个详细的介绍&#xff0c;并对该项目作了一点修改&#xff0c;修改后的项目名字叫SpringMVCBasic。可以作为学习spring mvc的一个入门的tutorial. 首先说明如何获取spring samples。其实很简单&#xff0c;只要装好了Subversion&am…

Mybatis 批量插入-Oracle 和 MySQL区别

问题引入&#xff1a; 1) MySQL和Oracle批量插入的语法不同 2) 数据库中大字段的存储问题&#xff0c;比如Oracle中的CLOB&#xff0c;BLOB等 1).Mysql批量插入的语法 insert into table_name values (?,?,?),(?,?,?),(?,?,?); 2).Oracle批量插入的语法&#xff0c;…

JSP网站开发基础总结《九》

本篇属于附加篇&#xff0c;在之前的总结中给大家提到过一个关于登录状态验证的效果&#xff0c;当时是通过Session对象完成的&#xff0c;今天我查了一下&#xff0c;JSP为我们封装了一个用于过滤用的过滤器类Filter&#xff0c;通过它我们就可以非常轻松的完成之前的那个功能…