what's wrong with this applet tag (trying to get an applet rendering in a RoR page)

Hi,

Any ideas why this tag:

<APPLET

codebase=“/applet”

archive=“JavaLibrary1.jar”

code=“org.gregnet.NewJApplet.class”

width=350 height=200>

is giving me this error (from Rails standard out)

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

Any ideas?

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>