How can I configure tomcat to handle .rhtml pages with jruby?
I guess I should mess around with the web.xml file, but I don’t know how…
(ideally, without rails, just the necessary stuff to use erb for rendering rhtml pages…)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There might be simpler ways, but here are a few ideas :-
Use JRuby-Rack in combination with one of the more lightweight Rack-compatible Ruby web frameworks like Sinatra. Warbler might be useful in wrapping up the application into a
.warfile for simple deployment to Tomcat.If you are using Apache in front of Tomcat, you could use a Ruby CGI script to interpolate the
.rhtmlfiles.If the
.rhtmlfiles can be interpolated before being deployed (i.e. they do not rely on variables only available at run-time), you could use a framework like Webby and then just serve them as static files.