Skip to content

Instantly share code, notes, and snippets.

View rmanalan's full-sized avatar
:octocat:

Rich Manalang rmanalan

:octocat:
View GitHub Profile

Java JSP/Servlet integration scenarios with JRuby-Rack

  1. Forward from Rails to Servlet/JSP. See demo_controller.rb #index and attributes.jsp.
  2. Include Rails response in JSP output. See demo.jsp.
  3. Arbitrary rendering with servlet response from Rails. See demo_controller #not_found.
  4. Forwarding from servlets to Rails should work fine, but I haven't tried it.