-
Applet HTML question
Hi,
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/GetAFile.pl?Testing\AppletLoader.html">
This is the HTTP GET created by the above:
GET /cgi-bin/GetAFile.pl?Testing\AppletLoader.html HTTP/1.1
Now I'd like the browser to issue this GET:
GET /cgi-bin/GetAFile.pl?Testing/AppletLoader.class 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="GetAFile.pl%3f"
GET /cgi-bin/GetAFile.pl%3f/AppletLoader.class HTTP/1.1 <<< Close?
//This one failed html=codebase="GetAFile.pl?" 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/GetAFile.pl?AppletLoader.class"
GET /cgi-bin/cgi-bin/GetAFile/pl?AppletLoader.class HTTP/1.1
Note: .pl changed to /pl???
// Failed html=codebase="GetAFile.pl?"
GET /cgi-bin/AppletLoader.class HTTP/1.1
//Almost?? html=codebase="GetAFile.pl%3FTesting/" <<< should %3f Be decoded by server??
GET /cgi-bin/GetAFile.pl%3FTesting/AppletLoader.class HTTP/1.1
Thanks,
Norm
-
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
-
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.
-
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\
codebase="GetAFile2.pl/Testing"
Similar Threads
-
By Tataroz T. in forum Java
Replies: 1
Last Post: 10-20-2005, 06:19 AM
-
By crash75uk in forum Java
Replies: 1
Last Post: 04-20-2005, 03:32 PM
-
Replies: 0
Last Post: 06-09-2002, 04:41 AM
-
By Eddie in forum Architecture and Design
Replies: 0
Last Post: 10-18-2001, 07:36 PM
-
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
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks