-
Notifications
You must be signed in to change notification settings - Fork 811
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WW-5455 Defines a new plugin to support Jasper Reports 7
- Loading branch information
1 parent
90c9dfa
commit 7201bd9
Showing
14 changed files
with
1,622 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Jasper Reports plugin | ||
This plugin allows to use Jasper reports as a one of the result types. | ||
You will find more details in [documentation](https://struts.apache.org/plugins/jasperreports/). | ||
|
||
## Installation | ||
Just drop this plugin JAR into `WEB-INF/lib` folder or add it as a Maven dependency. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
--> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<groupId>org.apache.struts</groupId> | ||
<artifactId>struts2-plugins</artifactId> | ||
<version>7.0.0-M11-SNAPSHOT</version> | ||
</parent> | ||
|
||
<artifactId>struts2-jasperreports7-plugin</artifactId> | ||
<packaging>jar</packaging> | ||
<name>Struts 2 Jasper Reports 7 Plugin [EXPERIMENTAL]</name> | ||
|
||
<properties> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
<jasperreports7.version>7.0.1</jasperreports7.version> | ||
</properties> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>net.sf.jasperreports</groupId> | ||
<artifactId>jasperreports</artifactId> | ||
<version>${jasperreports7.version}</version> | ||
<exclusions> | ||
<!-- not necessary to compile and it force dependency convergence issues --> | ||
<exclusion> | ||
<groupId>com.fasterxml.jackson.core</groupId> | ||
<artifactId>jackson-databind</artifactId> | ||
</exclusion> | ||
<exclusion> | ||
<groupId>com.fasterxml.jackson.core</groupId> | ||
<artifactId>jackson-annotations</artifactId> | ||
</exclusion> | ||
</exclusions> | ||
</dependency> | ||
<dependency> | ||
<groupId>net.sf.jasperreports</groupId> | ||
<artifactId>jasperreports-pdf</artifactId> | ||
<version>${jasperreports7.version}</version> | ||
<optional>true</optional> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.fasterxml.jackson.core</groupId> | ||
<artifactId>jackson-databind</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.struts</groupId> | ||
<artifactId>struts2-junit-plugin</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.springframework</groupId> | ||
<artifactId>spring-web</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.easymock</groupId> | ||
<artifactId>easymock</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
</dependencies> | ||
</project> |
56 changes: 56 additions & 0 deletions
56
...reports7/src/main/java/org/apache/struts2/views/jasperreports7/JasperReportConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
package org.apache.struts2.views.jasperreports7; | ||
|
||
|
||
/** | ||
* <code>JasperReportConstants</code> | ||
*/ | ||
public interface JasperReportConstants { | ||
|
||
/** | ||
* PDF format constant | ||
*/ | ||
String FORMAT_PDF = "PDF"; | ||
|
||
/** | ||
* XML format constant | ||
*/ | ||
String FORMAT_XML = "XML"; | ||
|
||
/** | ||
* HTML format constant | ||
*/ | ||
String FORMAT_HTML = "HTML"; | ||
|
||
/** | ||
* XLS format constant | ||
*/ | ||
String FORMAT_XLSX = "XLSX"; | ||
|
||
/** | ||
* CSV format constant | ||
*/ | ||
String FORMAT_CSV = "CSV"; | ||
|
||
/** | ||
* RTF format constant | ||
*/ | ||
String FORMAT_RTF = "RTF"; | ||
} |
Oops, something went wrong.