---
title: "集成struts2到web应用中"
author: "fslingmo"
date: "2012-02-04T11:44:47Z"
tags: []
categories: ["Web前端"]
slug: "struts2-web"
draft: false
lastmod: "2012-02-04T11:44:47Z"
id: 1392656
url: "https://fslingmo.iteye.com/blog/1392656"
---

Struts-2.16中有很多jar包，有些要用到的，有些不是必须的。初学者可以先加一些必不可少的jar。

 

commons-fileupload-1.2.1.jar(对于struts2.0系列版本的不需要这个jar包。而对于2.1.6需要这个jar包)（处理文件上传的）

commons-logging-1.0.4.jar（处理日志文件）

ognl-2.6.11.jar（表达式语言）

struts2-core-2.1.6.jar（struts2的核心）

xwork-2.2.2.jar（struts2与web work整合了。web work依靠xwork，所以需要这个）

freemarker-2.3.13.jar（处理视图的，渲染的）

 

 

把这些jar添加到我们建立的项目。