Forum: Ruby on Rails Rails paths when loading a Java applet

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.
Aad37b5f7116c8d1f547d23b37566032?d=identicon&s=25 Greg Donald (destiney)
on 2009-04-07 23:06
(Received via mailing list)
I've built a Java applet and now I'm trying to load it using Rails,
it's failing to load.

The problem seems to be that Rails is changing the dots in my
classpath to forward slashes which then cause my applet's dependencies
to not load.  Here's an example dependency from the logs that's
failing:

ActionController::RoutingError (No route matches
"/com/objex/panywhere/Pedigree_RS_Bundle.class" with {:method=>:get}):


So how can I tell Rails that I'm loading a Java applet and to not mess
with anything in my <object> and <embed> tags?

Here's my embed code that works perfectly outside of Rails:

<object classid="clsid:CAFEEFAC-0016-0000-0000-ABCDEFFEDCBA"
        width="600"
        height="400">
<param name="archive" value="/artemis.jar" />
<param name="code" value="artemis.ProgenyAnywhereWrapper.class" />
<param name="codebase" value=".">
<comment>
<embed type="application/x-java-applet"
       archive="/artemis.jar"
       code="artemis.ProgenyAnywhereWrapper.class"
       width="600"
       height="400"
       codebase=".">
  <noembed>No Java Support.</noembed>
</embed>
</comment>
</object>


Surely I don't have to make custom routes for every single one of my
applet dependencies ?


Thanks,


--
Greg Donald
http://destiney.com/
0ae9d4a0a98af4ab34d1e75cfa20f069?d=identicon&s=25 Ian Randolph (Guest)
on 2013-05-02 21:35
(Received via mailing list)
Did you ever figure this out? I am having the same problem and can't
find a
good solution anywhere.
90bb4bd2501b6b344ba4346ec5976b30?d=identicon&s=25 Daniel Hatcher (Guest)
on 2013-05-02 21:46
(Received via mailing list)
No one has given me a viable response yet. I will keep you in the loop
if i
find anything out.
This topic is locked and can not be replied to.