It didn't work for me when I tried to run it, so there may be some
additional issues to work out.
What problems gives it to you ?
I got this exception:
CouldNotLoadArgumentException[ Could not load file/URL specified: /var/
tmp/javawsZcVRT4]
at com.sun.javaws.Main.launchApp(Main.java:327)
at com.sun.javaws.Main.continueInSecureThread(Main.java:252)
at com.sun.javaws.Main$1.run(Main.java:111)
at java.lang.Thread.run(Thread.java:637)
However, I was able to resolve it by enabling application caching in
my Java Preferences.
1) The code might be cleaner if you use the properties of the
request to
generate the "codebase" and "href" attributes:
...
It's more verbose but for me it's the same, Ok.
How about this, then?
<%
String codebase = request.getScheme() + "://" + request.getServerName()
+ ":" + request.getServerPort() + request.getContextPath();
String href = request.getServletPath();
%>
This is also more efficient than parsing the string yourself (since
the HttpServlet has already done that work for you).
2) We might want to consider mapping the "jnlp" extension to the
JSP servlet
so we can just call this file "kitchen_sink.jnlp".
One question: changing the Application Server I could not be able to
run jsp pages (I could have no more Tomcat JSP classes available), it
is Ok ?
So I don't like too much this, but i can try to do the trick.
This shouldn't require making changes to the application server -
mapping an extension to a servlet is done in web.xml, as I recall.
4) I think a simple "(JNLP)" or "(Web Start)" link next to the
existing link
would be sufficient (no need to restructure the page).
Ok, so no Web Start Applet version, right ?
The Java Deployment Toolkit is working well for applets so far, so
let's hold off on JNLP applets for now.