简体   繁体   中英

XML/XSLT trasnsformed data export to excel in Java

I have a JSP in which I want to:

  1. make an HTTP request;
  2. get back the XML response;
  3. transform the response using XSL; and
  4. export the transformed data to excel.

But i do not get the entire data in a single HTTP call. Also I have to use two stylesheets for exporting to Excel. The first is for the first page of records, and the other is for all the other pages.

How can one do this in Java?

Thanks

Could you parse the XML into Java objects, then when you have the complete object list simply write the Excel file using JExcelAPI ? I've used this for Excel files and it's very simple & useful.

或使用Apache POI (其功能强大的API)以Java读取和创建MS Office文档。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM