1

JSP can be regarded as nice template and/or preprocessor engine. I would like to generate some XML files by program with it.

What is the simplest way to accomplish this?

Dims
  • 42,427
  • 94
  • 291
  • 543

1 Answers1

0

tomcat has a jsp compiler, which is wrapped up quite nicely in an ant task that you can just call: https://tomcat.apache.org/tomcat-6.0-doc/api/org/apache/jasper/JspC.html

Chii
  • 14,102
  • 3
  • 35
  • 44