Applet HTML question

DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: Applet HTML question

  1. #1
    Join Date
    Jul 2005
    SW MO, USA

    Applet HTML question


    I'd want to have all the HTTP GETs from a browser loading an html page containing an applet go thru a cgi script both for the HTML and the java classes.
    How do I code that?

    This HTML will send the browser to the cgi for the HTML:
    <A href="cgi-bin/\AppletLoader.html">
    This is the HTTP GET created by the above:
    GET /cgi-bin/\AppletLoader.html HTTP/1.1

    Now I'd like the browser to issue this GET:
    GET /cgi-bin/ HTTP/1.1

    How do I code the HTML to cause the browser to issue this GET?

    My attempts at using the code= and codebase= have failed:

    //This one failed html=codebase=""
    GET /cgi-bin/ HTTP/1.1 <<< Close?

    //This one failed html=codebase="" how to send a ?
    Browser does two gets:
    First: GET /cgi-bin/AppletLoader.class HTTP/1.1
    Second: GET /cgi-bin/AppletLoader/class.class HTTP/1.1

    //Failed html=<APPLET CODE="cgi-bin/"
    GET /cgi-bin/cgi-bin/GetAFile/pl?AppletLoader.class HTTP/1.1
    Note: .pl changed to /pl???

    // Failed html=codebase=""
    GET /cgi-bin/AppletLoader.class HTTP/1.1

    //Almost?? html=codebase="" <<< should %3f Be decoded by server??
    GET /cgi-bin/ HTTP/1.1


  2. #2
    Join Date
    Nov 2004

    I may be barking up the wrong tree here,....

    ...but what you want to do is have a perl script that reads the html page
    specified and returns it to the client... right ?
    After the question mark following the script spec I see no name/value pairs,
    just a value, should not this be like:

    <script path>?name1=value1&name2=value2 (etc.) ?
    eschew obfuscation

  3. #3
    Join Date
    Jul 2005
    SW MO, USA
    I'm not sure that there is that requirement in the query string (what follows the ?), but I'll give it a try.
    The key=value pairs are generated by a <Form.
    The handshake between the URL and the cgi is up to the programmer.

  4. #4
    Join Date
    Jul 2005
    SW MO, USA
    The following <applet tag attribute has the browser issue a GET that goes to the cgi-bin on an Apache server. Now I need some perl code to be able to handle all the GETs for the needed class files in the Applet. The HTML page was loaded by a perl script in \cgi-bin\


Similar Threads

  1. JavaMail applet problem
    By Tataroz T. in forum Java
    Replies: 1
    Last Post: 10-20-2005, 06:19 AM
  2. Java applet window
    By crash75uk in forum Java
    Replies: 1
    Last Post: 04-20-2005, 03:32 PM
  3. linking applet to html document
    By marc in forum Java
    Replies: 0
    Last Post: 06-09-2002, 04:41 AM
  4. Replies: 0
    Last Post: 10-18-2001, 07:36 PM
  5. Applet and thread problems
    By Aneesha in forum Java
    Replies: 0
    Last Post: 05-06-2000, 10:36 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center