The moose likes JNLP and Web Start and the fly likes How to Launch a JNLP File from JSP Page Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JNLP and Web Start
Reply Bookmark "How to Launch a JNLP File from JSP Page" Watch "How to Launch a JNLP File from JSP Page" New topic
Author

How to Launch a JNLP File from JSP Page

javascorp
Greenhorn

Joined: May 24, 2004
Posts: 2
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
Sheriff

Joined: Jul 11, 2001
Posts: 15040

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.


My Blog | DZone Articles
javascorp
Greenhorn

Joined: May 24, 2004
Posts: 2
I will appreciate a solution to my problem,
Thanks
Carl Trusiak
Sheriff

Joined: Jun 13, 2000
Posts: 3340
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.


I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
 
 
subject: How to Launch a JNLP File from JSP Page
 
Threads others viewed
PLEASE HELP
Web Start and startup folder
problem in opening jar file on double click
javax.jnlp
2 jnlp files using the same extensions
MyEclipse, The Clear Choice