Is there a way to map *.rb files to be executed under JRuby with the output being sent out to the browser like a CGI? Basically I'm looking for a JRuby CGI servlet.
Ideally, I'd like to define a JRuby servlet in web.xml and then be able to put *.rb files in WEB-INF/ruby and be able to call them via http://servername/contextname/rubyprogram.rb and pass data to the ruby program either by a form post or as part of the URL.
EDIT: I've done more research and found both Sun's project Phobos (which is bundles an entire Ruby install in a WAR file) and JRuby RACK.
Has anyone been able to set up a light and simple install of Rack that does this? Anyone know of an example config that would let me do this?