Code Monkey home page Code Monkey logo

jett's Introduction

JETT - Java Excel Template Translator

JETT can be found online at http://jett.sourceforge.net.

Description

JETT is Java Excel Template Translator. Give it a Map of "beans" -- mapping
variable names to your own data objects, specify a pre-existing Excel template
file, and JETT will create a new Excel spreadsheet, populating your data into
it. The data can come from any source. Mark up your template spreadsheet
first, with JEXL Expressions (e.g. "${myVariable}") and XML-like Tags (e.g.
<jt:forEach items="${myList}" var="item">) for control over how JETT translates
your template spreadsheet and populates your data. You can even create your
own Tags to implement custom processing logic. JETT works with .xls and .xlsx
Excel files.

Example

Here is a quick example of how to use JETT:

  • Excel template spreadsheet:

+----------------+----------------+
|${var} |${var2}! |
+----------------+----------------+

  • Java code to use JETT:
Map<String, Object> beans = new HashMap<String, Object>();
beans.put("var", "Hello");
beans.put("var2", "World");
ExcelTransformer transformer = new ExcelTransformer();
try
{
   transformer.transform("template.xlsx", "result.xlsx", beans);
}
catch (IOException e)
{
   System.err.println("I/O error occurred: " + e.getMessage());
}
catch (InvalidFormatException e)
{
   System.err.println("Spreadsheet was in invalid format: " + e.getMessage());
}
  • The resultant Excel spreadsheet:

+----------------+----------------+
|Hello |World! |
+----------------+----------------+

Installation

JETT を使用するには、以下から最新のディストリビューションをダウンロードできます。
唯一のモジュールは「jett-core」です。
「jett-core」jar ライブラリをクラスパスに配置します。

Build Instructions

JETT を自分で構築したい場合は、次の手順を実行します。

  1. ソースコードを取得します。
    a. JETT の最新ディストリビューションを次からダウンロードします。
    http://sourceforge.net/projects/jett/files/。
    これには、最新リリースのソース コードが含まれています。
    または
    b. Subversion を使用してトランクから最新のソース コードをチェックアウトします。
    Subversion URL http://svn.code.sf.net/p/jett/code-0/trunk

  2. http://maven.apache.org/ から Maven 2 以降を入手してインストールします。

  3. Maven を実行して JETT をビルドします。
    mvnクリーンインストール

Licensing

https://github.com/furukawatts/jett/blob/master/LICENSE

jett's People

Contributors

furukawatts avatar dependabot[bot] avatar

jett's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.