• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dynamic JNLP

 
Steve Wood
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Steve Wood
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic