How to obtain the context path in a Jruby app on Tomcat?

JRuby-Rack exposes a controller method called #servlet_request. So you
could try `servlet_request.context_path` inside a controller or view.

/Nick