• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Dynamic JNLP

 
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
It's a beautiful day in this neighborhood - Fred Rogers. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic