G
Guest
We have a servlet (managing a mysql database of astronomical data) which
is accessed by HTML forms as front end (actually after a login form, it
generates its own HTML pages which invoke other methods in the servlet).
At present the servlet has limited graphics capabilities, i.e. can
produce GIF, JPEG or Postscript plots sent back to the user via http.
I thought to improve this (or better a variant of it for a different
project) having an applet doing the plots, and having the servlet
sending the data to be plotted to the applet. One could also think to
implement some interactivity in the applet, like zoom and pan, or by
selecting data points with the mouse and getting additional information
about them.
I have spent the entire afternoon browsing the net for tutorials and
examples about servlet-to-applet communication, but I would like your
advice on the matter.
- is the usage of sockets the best (and also most efficient in terms
of network load) way to handle servlet-to-applet communication ?
or are there any better classes ?
- are there any likely security problem (permission denied) if the
servlet (running on port 8080 of 'host') will generate HTML pages
making reference to an applet residing somewhere on 'host' (via
default port 80) ?
- will one gain something using serialization on the stream between
applet and servlet, or is there any penalty w.r.t. to transmission
of raw binary data, eventually gzipped (or conversely should one
use serialization to prevent portability issues like endianness of
the data if applet and servlet run under different OS's) ?
- any other issue I should be aware of ?
is accessed by HTML forms as front end (actually after a login form, it
generates its own HTML pages which invoke other methods in the servlet).
At present the servlet has limited graphics capabilities, i.e. can
produce GIF, JPEG or Postscript plots sent back to the user via http.
I thought to improve this (or better a variant of it for a different
project) having an applet doing the plots, and having the servlet
sending the data to be plotted to the applet. One could also think to
implement some interactivity in the applet, like zoom and pan, or by
selecting data points with the mouse and getting additional information
about them.
I have spent the entire afternoon browsing the net for tutorials and
examples about servlet-to-applet communication, but I would like your
advice on the matter.
- is the usage of sockets the best (and also most efficient in terms
of network load) way to handle servlet-to-applet communication ?
or are there any better classes ?
- are there any likely security problem (permission denied) if the
servlet (running on port 8080 of 'host') will generate HTML pages
making reference to an applet residing somewhere on 'host' (via
default port 80) ?
- will one gain something using serialization on the stream between
applet and servlet, or is there any penalty w.r.t. to transmission
of raw binary data, eventually gzipped (or conversely should one
use serialization to prevent portability issues like endianness of
the data if applet and servlet run under different OS's) ?
- any other issue I should be aware of ?