Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can I specify a relative codebase in the JNLP descriptor?

0
Posted

How can I specify a relative codebase in the JNLP descriptor?

0

Use Sun’s jnlp-servlet that is part of Sun’s Web Start developer’s pack. It allows you to set jnlp.codebase to $$codebase and jnlp.href to $$name. Sun’s jnlp-servlet will replace $$codebase and $$name with the correct values at run-time. Sun’s jnlp-servlet also supports different versions of the same file and jar diffs (aka incremental updates). A more light-weight approach is to rewrite your JNLP as a JSP. This allows you to put the JNLP file on any JSP-enabled host you want. Note that both codebase and href in the example below are pulled from the request and are not hard-coded.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123