How to Embed a RAP Application in a Web Page

November 19, 2007 | 1 min Read

A slightly overlooked aspect of RAP Applications is that they do *not* have to take the whole page in your browser. Instead they can also be embedded into an existing web page. The example below is embedded into this blog post and is fully usable. My pet-term for such an application is “RAPplet” - kinda like an applet but without the need for a JVM in the browser.

A straightforward iframe element will do the trick, as shown in the snippet below: <iframe src="https://rap.eclipse.org/maildemo/rap?startup=maildemo" name="maildemo" width="675" height="300" frameborder="0">Sorry your browser does not support iframes</iframe>

Happy hacking, Elias.