Basicly there are two main ways. One is to pass the info in the HTML Parm as mentioned, the other way is to have the Applet pull a specific web page ( call a perl script, static file, or HTML ) that returns the informaiton you want. You can also encode the informaiton in the perl and decode it in the applet so it is not directly readable by someone monitoring the connection or going directly to the webpage.

I do the second option for a little game I programmed. The Java applet that displayes the users status calls a perl CGI script on the server which returns the status then the applet POSTs the responce to a perl script which writes back to the db on the sever.

Java can always write and read from the server it originates from, but it can only read and write locally if it is signed and the user accepts it.

IF you are interested let me know and I can send you a link to an example. I don't want to post links to WIP which will live in PM archives.

In reply to Re: Perl with Java applet by Zero_Flop
in thread Perl with Java applet by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.