Forum: Ruby on Rails what's wrong with this applet tag (trying to get an applet rendering in a RoR page)

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Greg H. (Guest)
on 2009-02-27 02:44
(Received via mailing list)
Hi,

Any ideas why this tag:

  <APPLET
    codebase="/applet"
    archive="JavaLibrary1.jar"
    code="org.gregnet.NewJApplet.class"
    width=350 height=200>
  </APPLET>

is giving me this error (from Rails standard out)

     ActionController::RoutingError (No route matches
"/applet/org/gregnet/NewJApplet.class" with {:method=>:get}):


Any ideas?




--
Greg
http://blog.gregnet.org/
Chris K. (Guest)
on 2009-03-01 13:19
(Received via mailing list)
It's been a long time since I used Applets, but I think the problem is
the
use of CODEBASE with ARCHIVE.  With CODEBASE, you're telling the browser
that your code should be found as loose class files in the /applet
directory
rather than in the ARCHIVE.  I think what you want is just:

  <APPLET
    archive="/applet/JavaLibrary1.jar"
    code="org.gregnet.NewJApplet.class"
    width=350 height=200>
  </APPLET>


On Fri, Feb 27, 2009 at 1:43 AM, Greg H. <
This topic is locked and can not be replied to.