IntelliJ Java IDE
The moose likes JNLP and Web Start and the fly likes jsp generated jnlp file does not work Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JNLP and Web Start
Reply Bookmark "jsp generated jnlp file does not work" Watch "jsp generated jnlp file does not work" New topic
Author

jsp generated jnlp file does not work

Josh Johnson
Greenhorn

Joined: Jan 15, 2001
Posts: 20
I have a jsp that generates a jnlp file.
When I point my browser to the jsp, it just displays the xml that the jsp generated. It does not start the Java Web Start application.
What am i missing here?
Josh Johnson
Greenhorn

Joined: Jan 15, 2001
Posts: 20
I'm not sure why the browser was just displaying the text of the generated jnlp file.
In any case, I fixed the problem by removing the href attribute in the jnlp element. Now it works like a dream.
Zoltan Baji
Greenhorn

Joined: Feb 03, 2004
Posts: 1
Set the mime-type
for example:
<%
response.setContentType("application/x-java-jnlp-file");
%>
<?xml version="1.0" encoding="utf-8"?>
<!-- JNLP File for SwingSet2 Demo Application -->
<jnlp
spec="1.0+"
 
 
subject: jsp generated jnlp file does not work
 
Threads others viewed
Authenticate access to Jars before download
JNLP and web application
How to write a JNLP Dermo?
Signing JNLP - Where does JNLP-INF directory go?
How can we allow multiple values of max-heap-size
MyEclipse, The Clear Choice

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture