Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dynamicly generate a JNLP file for a Java Web Start application?

I'm writing a servlet to return a JNLP file with several dynamically generated parameters to be passed to a web start program. Right now my code uses a stock template and token replacement, but I have to think there is a way to generate this file programmaticly within a servlet.

Are there any tools available for this?

like image 259
Peter Bratton Avatar asked May 27 '26 05:05

Peter Bratton


1 Answers

It's just an XML file, so I'd have thought there are various ways to do this, from your token-replace idea to a full template language like freemarker, or using programmatic DOM generation. It's doesn't seem complex enough to warrant a dedicated API of its own.

like image 138
skaffman Avatar answered May 30 '26 03:05

skaffman