How to include an java applet in a rhtml page

That should do it. The rhtml file is basically a html file which is
interpreted/parsed by erb before being sent to the client. So
everything you can do in a html file you can do in an rhtml file.