How to solve ioexception in xls file generated by jett?

48 views Asked by At

I have a bean with method to generate report made with jett:

beans.put("list", list);

    try {
        String inPath  = ("/template.xls");

         ExcelTransformer transformer = new ExcelTransformer();
         transformer.transform(inPath, "report.xls", beans);

I'm having ioexception in transform.transformer (...) being that I put template.xls in src / main / resources as maven says and I still stated in pom:

<directory>src/main/resources</directory>
            <includes>
                <include>template.xls</include>
            </includes>

in fact I did equal the documentation of the jett and they do not explain much the. I already tried several combinations of path and nothing

0

There are 0 answers