Topic  |
|
Posted - Oct 19 2002 : 05:08:18
|
Is there a way to protect java applets with this script? I can get it to display the page, but there is a grey box instead of the applet. All the supporting files are in the same directory but it seems that the class files remain "hidden" from the applet so to speak. Or is there a better way to protect pages with applets in them?
|
|
Posted - Oct 19 2002 : 19:12:21
|
Most applets use a local reference for their class files and image files. All files are
usually in the same folder as the applet/page.
If you use Link Protect to display a page displaying an applet, you will need to add a codebase statement to the applet parameters. Otherwise it will not find the files because they haven't been defined... their location is secret.
If you do use a codebase statement, the applet will look for both the class files and images in the defined folder:
<applet codebase=/foldername code=your.class height=206 width=366>
You cannot use a CGI script link to point to the image/class files from within the applet parameters.
|
 |
|
Posted - Oct 19 2002 : 22:46:09
|
| That did the trick. I also had to point a parameter of the applet in the right direction, but it works like a champ. Thanks a bunch. |
 |
|
Topic  |
|
|
|