Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Registering applet as resource
Registering applet as resource [message #507417] Wed, 13 January 2010 12:28 Go to next message
Patrick  is currently offline Patrick Friend
Messages: 5
Registered: January 2010
Junior Member
Hi,

i've created a custom widget to display an applet inside (and to communicate with it). I'm embedding the applet via the follwing command in the widget-JavaScript-file:

document.getElementById(this._id).innerHTML = '<APPLET CODE="MyApplet.class" NAME="myApplet" MAYSCRIPT HEIGHT=200 WIDTH=200></APPLET>';


Can anyone tell me how to register the applet as resource so i can access it at this point?

Kind regards
Patrick

Re: Registering applet as resource [message #507443 is a reply to message #507417] Wed, 13 January 2010 14:17 Go to previous messageGo to next message
Benjamin Muskalla is currently offline Benjamin MuskallaFriend
Messages: 338
Registered: July 2009
Senior Member
Hi Patrick,

you can use the "org.eclipse.equinox.http.registry.resources" extension
point to register arbitrary resources.

Regards,
Benny

Patrick wrote:
> Hi,
>
> i've created a custom widget to display an applet inside (and to
> communicate with it). I'm embedding the applet via the follwing command
> in the widget-JavaScript-file:
>
> document.getElementById(this._id).innerHTML = '<APPLET
> CODE="MyApplet.class" NAME="myApplet" MAYSCRIPT HEIGHT=200
> WIDTH=200></APPLET>';
>
> Can anyone tell me how to register the applet as resource so i can
> access it at this point?
>
> Kind regards
> Patrick
>
>


--
Benjamin Muskalla | EclipseSource Karlsruhe
http://www.eclipsesource.com | http://twitter.com/eclipsesource
Re: Registering applet as resource [message #507467 is a reply to message #507417] Wed, 13 January 2010 15:26 Go to previous messageGo to next message
Patrick  is currently offline Patrick Friend
Messages: 5
Registered: January 2010
Junior Member
Thanks, that's what i searched.

Btw the properties are used the following way:
base-name: The path which is to be mapped (project folder is root)
alias: Path the base-name is mapped to on the server

e.g.

alias: /
base-name: resources

Now everything in project/resources can be accessed via http://<urlToServer>/.

Regards,
Patrick

[Updated on: Fri, 15 January 2010 08:54]

Report message to a moderator

Re: Registering applet as resource [message #507700 is a reply to message #507467] Thu, 14 January 2010 12:24 Go to previous messageGo to next message
Benjamin Muskalla is currently offline Benjamin MuskallaFriend
Messages: 338
Registered: July 2009
Senior Member
Hi Patrick,

would you mind to add a small paragraph to the FAQ so others may find it
that way? That would be awesome!

You only need a bugzilla account to edit the wiki page, the FAQ is
located at http://wiki.eclipse.org/RAP/FAQ

Thanks in advance!
Benny

Patrick wrote:
> Thanks, that's what i searched.
>
> Btw the properties are used the following way:
> base-name: The path which is to be mapped (project folder is root)
> alias: Path the base-name is mapped to on the server
>
> e.g.
>
> alias: /
> base-name: resources/
>
> Now everything in project/resources can be accessed via
> http://<urlToServer>/.
>
> Regards,
> Patrick


--
Benjamin Muskalla | EclipseSource Karlsruhe
http://www.eclipsesource.com | http://twitter.com/eclipsesource
Re: Registering applet as resource [message #507930 is a reply to message #507417] Fri, 15 January 2010 08:59 Go to previous messageGo to next message
Patrick  is currently offline Patrick Friend
Messages: 5
Registered: January 2010
Junior Member
Hi Benny,

i posted a paragraph to the FAQ:
http:// wiki.eclipse.org/RAP/FAQ#How_to_register_a_file.2Ffolder_as_ resource.3F

I hope it's sufficient. I'm a beginner at this topic doing an internship at the moment.

Regards,
Patrick
Re: Registering applet as resource [message #507961 is a reply to message #507930] Fri, 15 January 2010 05:34 Go to previous messageGo to next message
Benjamin Muskalla is currently offline Benjamin MuskallaFriend
Messages: 338
Registered: July 2009
Senior Member
Hi Patrick,

that's great! Thanks a lot for the contribution!

Regards,
Benny

Patrick wrote:
> Hi Benny,
>
> i posted a paragraph to the FAQ:
> http://wiki.eclipse.org/RAP/FAQ#How_to_register_a_file.2Ffol der_as_resource.3F
>
>
> I hope it's sufficient. I'm a beginner at this topic doing an internship
> at the moment.
> Regards,
> Patrick


--
Benjamin Muskalla | EclipseSource Karlsruhe
http://www.eclipsesource.com | http://twitter.com/eclipsesource
Re: Registering applet as resource [message #521465 is a reply to message #507417] Wed, 17 March 2010 16:39 Go to previous message
Ivo Carola is currently offline Ivo CarolaFriend
Messages: 5
Registered: March 2010
Junior Member
Hi Patrick,
I'm trying to display an applet in a widget but with little success. I'm able to do it extending an iframe and setting the source to an html that includes the applet.
I'm not very happy with the solution, can you share your solution?

Best regards,
Ivo Carola.

[Updated on: Wed, 17 March 2010 16:39]

Report message to a moderator

Previous Topic:org.eclipse.swt.Request clashes with other http-requests to custom IServiceHandlers?
Next Topic:Endorsed libraries
Goto Forum:
  


Current Time: Fri Apr 19 05:31:02 GMT 2024

Powered by FUDForum. Page generated in 0.02335 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top