• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to Launch a JNLP File from JSP Page

 
javascorp
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working on Apache Tomcat Server.
I would like to know how I can create a JNLP File dynamically and launch it such that it starts the Webstart Environment.
Please reply with some sample code if possible

Thanks in Advance
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Scorpion King,

Welcome to Javaranch!

As you know this is a great community in which to learn Java and we don't have too many rules around here, but we do have a Naming Policy. Please read this policy and adjust your display name accordingly.

You can change your display name here.

Thanks.
 
javascorp
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I will appreciate a solution to my problem,
Thanks
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First, javacorp isn't any closer to our policy than Scorpion King so, please read and follow the naming policy.

Remember, the JNLP file is simply a text file with a special extention and mime type. If you wish to dynamically generate this, you need to map the extention to the resource. You'll need to map the .jnlp extention to a servlet and use the servlet to generate the content or forward the request to a jsp to generate the content. Ensure in either that you set the mime type of the output correctly.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic