Greg Hauptmann
2009-Feb-27 00:43 UTC
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>
</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/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
Chris Kottom
2009-Mar-01 11:19 UTC
Re: what''s wrong with this applet tag (trying to get an applet rendering in a RoR page)
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 Hauptmann <
greg.hauptmann.ruby-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> 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/
>
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---