---
title: "struts2 + jasperReport"
author: "Jellen129"
date: "2011-05-06T16:49:52Z"
tags: []
categories: ["编程语言"]
slug: "struts2-jasperreport"
draft: false
lastmod: "2011-05-06T16:49:52Z"
id: 1033715
url: "https://jellen129.iteye.com/blog/1033715"
---

出现的错误如下：

There is no result type defined for type 'jasper' mapped with name 'success'...

 

原因：

缺少struts2中的包，请导入：struts2-jasperreports-plugin-2.1.6.jar ，就OK了！

 

struts2+jasperReport 一般报表常用到的包，如下：

1\. struts2-jasperreports-plugin-2.1.6.jar

2\. jasperreports-4.0.1.jar

3\. iTextAsian.jar

4\. iText-2.1.7.jar

5\. poi-3.6.jar    以Excel形式导出