-
Enhancement
-
Resolution: Fixed
-
P4
-
5.0
-
b42
-
generic
-
generic
request from customer:
I have found it useful to add support for an additional macro named $$site which is expanded to contain the web site address without the WAR context portion. For example, if $$context == http://www.mytool.com/tool/ then $$site == http://www.mytool.com/.
I use it for access to resources on the originating web site that do not lie within the WAR, for example access to a 3rd-party service on the same web site as the JNLP, can be listed within the JNLP without having to hard-code the web site address. Typically these get used within webstart application arguments or properties. But also, they can be used to define the location of dependency webstart extensions that might be locally maintained.
The code to make this happen requires a simple change to jnlp.sample.servlet.JnlpFileHandler.specializeJnlpTemplate by inserting the following one line of code before the return statement:
jnlpTemplate = substitute(jnlpTemplate, "$$site", urlprefix);
It would be good if this could be incorporated into the standard sample distribution.
###@###.### 2005-04-16 14:32:57 GMT
I have found it useful to add support for an additional macro named $$site which is expanded to contain the web site address without the WAR context portion. For example, if $$context == http://www.mytool.com/tool/ then $$site == http://www.mytool.com/.
I use it for access to resources on the originating web site that do not lie within the WAR, for example access to a 3rd-party service on the same web site as the JNLP, can be listed within the JNLP without having to hard-code the web site address. Typically these get used within webstart application arguments or properties. But also, they can be used to define the location of dependency webstart extensions that might be locally maintained.
The code to make this happen requires a simple change to jnlp.sample.servlet.JnlpFileHandler.specializeJnlpTemplate by inserting the following one line of code before the return statement:
jnlpTemplate = substitute(jnlpTemplate, "$$site", urlprefix);
It would be good if this could be incorporated into the standard sample distribution.
###@###.### 2005-04-16 14:32:57 GMT