This section outlines the steps required to create a CGI Perl script that can be used to launch a WebStart application. This section assumes experience in writing both CGI Perl scripts and WebStart JNLP files.
Many NeXtMidas-based applications come with web page front ends that allow users to easily select the data they wish to view. Using that information a customized NeXtMidas session is launched via WebStart.
Unfortunately JNLP files are static and can not accept options passed in from a web form. One way to get around this is to write a CGI Perl script that will take those options and serve out a dynamically-generated JNLP file.
"
' becomes
'\"
').
href
that refers to the JNLP file. It's usually of the
form
<jnlp spec="1.0+" href="app_name.jnlp">If you omit this step Java WebStart will attempt to start a JNLP file in the
codebase
.
<argument> APP_NAME </argument>line so that it reads
<argument> APP_NAME arg1 arg2 ... argN </argument>where
arg1
, arg2
, ...,
argN
are the arguments to pass to the application.
cgi-bin
). Give it the name app_name.pl
.
http://server_name/cgi-bin/app_name.pl?arg1&arg2&...&argN