| Author |
Dynamic JNLP
|
Steve Wood
Ranch Hand
Joined: Jan 08, 2003
Posts: 137
|
|
Hi Guys, I realise this is a repeat question to a recent post, but I'm using the correct name convention How do you dynamically create a JNLP file? I want to pass a couple of parameters into the JAR on load, but they depend on the user so can't be hardcoded on the JNLP page. Any help is greatly appreciated. I need a bit of hand-holding through this as I write everything in JSP. Cheers, Steve
|
 |
Catalin Merfu
Ranch Hand
Joined: May 26, 2004
Posts: 42
|
|
Create the JNLP content in a JSP file. In your html file set the link to the JSP instead of the static jnlp file. Don't forget to set the correct myme type for JNLP.
|
Catalin Merfu<br /><a href="http://www.accendia.com" target="_blank" rel="nofollow">High Performance Java Networking</a>
|
 |
Steve Wood
Ranch Hand
Joined: Jan 08, 2003
Posts: 137
|
|
I've tried doing that and it seems to work - though my security permissions don't seem to be coming through. The only problem is that it doesn't automatically start web start (using Windows XP) and I have to map the .jsp file to start javaws - it's not a huge deal, but is a bit of a pain in the butt - especially for non-techies. Any help with this is much appreciated. Cheers, Steve
|
 |
Mark Sintrel
Greenhorn
Joined: Jun 29, 2004
Posts: 7
|
|
You'll need to change the mime type of your script so that JWS knows it's a file it should handle. This can be done pretty easily by modifying the headers in your jsp file to say that it's an jnlp file .. I don't have the jsp code for this, but here's the php code - and it should be pretty similar: - Mark
|
<a href="http://www.amazon.com/exec/obidos/ASIN/0201310058/radikal" target="_blank" rel="nofollow">Effective Java Programming Language Guide</a> - probably the best book ever written for intermediate to advanced java programmers!
|
 |
 |
|
|
subject: Dynamic JNLP
|
|
|