• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Applet Dramas
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Applet Dramas


  • Subject: Applet Dramas
  • From: Greg Hulands <email@hidden>
  • Date: Sat, 2 Oct 2004 21:23:23 +1000

Hi,
In a component I am trying to embed an applet. I originally used just the applet tags and all worked well while testing using safari. Now I am testing the deployment with win ie and firefox on windows and they didn't work. It turns out that the java plugin requires <object> and <embed> tags to use it. I am running into trouble with that the applet won't init. I found a thread on the sun forums about it and it seems that the plugin tries to send a request to get the class file, which does not exist as it is in the jar. The solution posted was to use mod rewrite to return a 404 for the class file request. This does not seem to work as looks like apache passes the request to the webobjects adaptor before the rewrite condition is tested.


Here is the embed code:

<EMBED type="application/x-java-applet;jpi-version=1.4.2" width="400"
   height="350" align="baseline" java_code="MultiFileUploader.class" java_archive="HTTPClient.jar,mfu.jar"
   java_codebase="http://localhost///LightBox/Media//java/"; action="/cgi-bin/WebObjects/ShoeBox.woa/wo/eiyskIPXSt5tfjlZecCD7M/ 13.0.11.5.3"
   pluginspage="http://java.sun.com/j2se/1.4.2/download.html";>
<NOEMBED>
   No Java 2 Runtime Environment, Standard Edition v 1.4.2 support for APPLET!
</NOEMBED>
</EMBED>


Here is the mod_rewrite rule:
RewriteCond %{REQUEST_URI} ^.*(MultiFileUploader.class)
    RewriteRule ^(.+) [R=404]

I think the rule is correct.

What solution do others use to get applets to work in win IE and other windows based browsers?


Any help is greatly appreciated.

regards,
Greg
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: set page background image programmatically
  • Next by Date: Highlighting Search Words
  • Previous by thread: Re: set page background image programmatically
  • Next by thread: Highlighting Search Words
  • Index(es):
    • Date
    • Thread