It didn't work for me when I tried to run it, so there may be some
additional issues to work out.
Couple of comments:
1) The code might be cleaner if you use the properties of the request
to generate the "codebase" and "href" attributes:
<%
String scheme = request.getScheme();
String serverName = request.getServerName();
int serverPort = request.getServerPort();
String contextPath = request.getContextPath();
String codebase = scheme + "://" + serverName + ":" + serverPort
+ contextPath;
String href = request.getServletPath();
%>
2) We might want to consider mapping the "jnlp" extension to the JSP
servlet so we can just call this file "kitchen_sink.jnlp".
3) Using the signed versions of the JARs may allow you to set the
custom color scheme.
4) I think a simple "(JNLP)" or "(Web Start)" link next to the
existing link would be sufficient (no need to restructure the page).
On Oct 9, 2009, at 10:21 AM, Sandro Martini wrote:
Hi to all,
in attach there is a zip with inside a first version of the jsp page
that generates the jnlp file to run Kitchen Sink as Application.
Should be copied in the same dir of the new version.template.jsp
(under tutorials/www), then deploy via ant, and test the war with
Tomcat, for at the moment you have to give the full page URL, like:
http://localhost/8080/pivot-tutorials/kitchen_sink.jsp
Probably when committed this file should be renamed in
kitchen_sink.template.jsp , but before I need do make some
adjustments.
Next I can try to:
- modularize some parts of this page, to avoid replication of the
same values.
- solve the loading problem of custom colors: enabling it doesn't load
the custom file ... probably here Greg or Todd can give me a little
help, could be some issue with classloaders or other ...
When solved, this could be another version of this jnlp file, to
show custom colors loading ...
- make another version, to load the same application with Web Start
but as Applet
And last, how do you think it would be better to add links to Web
Start files in the Demos index page ?
I think put all content inside a table, then changing the description
of any demo, and make one link for any type of execution, maybe inside
a row under that description (or at right), with the first column for
applet, then Web Start as Application, and maybe Web Start as Applet.
Comments / suggestions ?
Tell me what do you think.
Sorry for the fast / partial solution of this, but for today I've no
other time ...
Bye,
Sandro
<kitchen_sink.zip>