Konqueror and Java applets - not a subscriber

Magnus Kessler M.Kessler at mdl.com
Thu Apr 14 13:54:57 BST 2005


On 2005-03-11 Stuart wrote
> Hi

> I am I currently working on a little project which involves the use of 
> a Java applet for HTTP uploads. Now I'm using the XHTML strict DTD as 
> I have to use it, so for embedding I'm using the Object tag. Which 
> brings me to my problem, I keeping getting an error appearing saying 
> Applet Error. The page I'm using currently has two object tag 
> definitions, one which works with IE as Microsoft like to be different 
> and the other method which works with Mozilla and opera (although 
> opera causes the applet to crash, so I need a change of applet there I 
> think as I have two possible ones to use at the moment). So at the 
> moment I have it working with IE, Mozilla (win/Linux/mac).

> I was wonder if Konqueror supports the object tag and if so does it 
> differ from Mozilla's implementation? Below is a copy of the code I'm
> using, I know jupload works in konqueror using the applet tags but
> those aren't part of XHTML 1.0 strict.

>            <fieldset>
>                <legend>Upload File</legend>
>                <!--[if !IE]>  -->
>                <object classid="java:JUpload.startup" 
type="application/x-java-applet" archive="lib/jupload.jar" height="300" 
width="650">
>                    <param name="actionURL" 
value="lib/upload.php?PHPSESSID=<?php echo $current_id; ?>" />
>                    <param name="completeURL" 
value="renderingmanager.php" />
>                    <param name="backgroundColor" value="#FFFFFF" />
>                    <param name="boxbgcolor" value="#FFFFFF" />
>                    <param name="useRecursivePaths" value="true" />
>                    <param name="checkJavaVersion" value="true" />
>                    <!--Custom File Filter is not enabled in this 
prototype.
>                    <param name="customFileFilter" value="true" />
>                    <param name="customFileFilterExtensions" 
value="gif,jpg,jpeg,tga,mb,ma,psd,bmp" />
>                    -->
>                    <param name="mainSplitpaneLocation" value="425" />
>                    <param name="showSystemIcons" value="true" />
>                    <param name="removeBorders" value="true" />
>                    <param name="showThumbnails" value="false" />
>                    <param name="showFilePaths" value="true" />
>                    <param name="tagName" value="myfile" />
>                    <param name="maxFilesPerRequest" value="1" />
>                 <!--<![endif]-->
>                     <object 
classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" height="300" 
width="650">
>                        <param name="code" value="JUpload.startup" />
>                        <param name="archive" 
value="lib/jupload.jar" />
>                        <param name="type" 
value="application/x-java-applet" />
>                        <param name="actionURL" 
value="lib/upload.php?PHPSESSID=<?php echo $current_id; ?>" />
>                        <param name="completeURL" 
value="renderingmanager.php" />
>                        <param name="backgroundColor" 
value="#FFFFFF" />
>                        <param name="boxbgcolor" value="#FFFFFF" />
>                        <param name="useRecursivePaths" value="true" />
>                        <param name="checkJavaVersion" value="true" />
>                        <!--Custom File Filter is not enabled in this 
prototype.
>                        <param name="customFileFilter" value="true" />
>                        <param name="customFileFilterExtensions" 
value="gif,jpg,jpeg,tga,mb,ma,psd,bmp" />
>                        -->
>                        <param name="mainSplitpaneLocation" 
value="425" />
>                        <param name="showSystemIcons" value="true" />
>                        <param name="removeBorders" value="true" />
>                        <param name="showThumbnails" value="false" />
>                        <param name="showFilePaths" value="true" />
>                        <param name="tagName" value="myfile" />
>                        <param name="maxFilesPerRequest" value="1" />
>                    </object>
>                <!--[if !IE]>-->
>                </object>
>                <!--<![endif]-->
>
> Hopefully someone can help me out here as i'm not a big user of 
> konqueror and therefor I don't know much about what it does and 
> doesn't work with.
>
> Regards
>
> Stuart

Stuart,

I came across your post having just found the solution to your problem. 
Konqueror (3.4) does not find the required jar files when they are 
given as an "archive" attribute as in your example (see also  
http://ww2.cs.fsu.edu/~steele/XHTML/appletObject.html which exhibits 
the same problem). It does however load the applet fine if you add a 
parameter with a "name" attribute of "archive" just as in the IE 
specific section.

Safari on MacOs X only sees the "archive" attribute on the other hand, 
so you can't leave that out. Mozilla/Firefox does not seem to care and 
works either way.

So just add a line <param name="archive" value="lib/jupload.jar"/> to 
your outer object tag and enjoy the ride.

Regards,

Magnus




More information about the kfm-devel mailing list