Skip to content

Commit

Permalink
WW-5455 Defines a new plugin to support Jasper Reports 7
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszlenart committed Nov 10, 2024
1 parent 90c9dfa commit 7201bd9
Show file tree
Hide file tree
Showing 14 changed files with 1,622 additions and 0 deletions.
6 changes: 6 additions & 0 deletions plugins/jasperreports7/README.md
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.
82 changes: 82 additions & 0 deletions plugins/jasperreports7/pom.xml
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>
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";
}
Loading

0 comments on commit 7201bd9

Please sign in to comment.