Discussion Locked

"Dynamic" HTML file from java "batch"

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Need to run a monthly java "batch" process to create an HTML file in a specific directory. From an online perspective, we use java server pages (jsp) to create dynamic HTML output in the browser, but from a "batch" process, jsp is out. Not sure how this can be accomplished - maybe with XML and XSLT which I don't yet know how to program - but will consider any ideas. Thanks in advance...

5 replies

by ivan kravchenko

Not sure if I understand you needs. It's quite easy to create a standalone java program which does the job using File class and run it in time.
If you want to use XSLT, you can try Xalan XSLT processor. It may be invoked in the following fashion:
java -cp D:\Java\lib\xalan.jar;D:\Java\lib\xerces.jar org.apache.xalan.xslt.Process -in test.xml -xsl test.xsl -out test.htm

by ivan kravchenko

Not sure if I understand you needs. It's quite easy to create a standalone java program which does the job using File class and run it in time.
If you want to use XSLT, you can try Xalan XSLT processor. It may be invoked in the following fashion:
java -cp D:\Java\lib\xalan.jar;D:\Java\lib\xerces.jar org.apache.xalan.xslt.Process -in test.xml -xsl test.xsl -out test.htm

This discussion is closed to new replies.