Create a gist now

Instantly share code, notes, and snippets.

web.xml to configure RailsScalaServlet
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
version="3.0">
<servlet>
<display-name>helloRails</display-name>
<servlet-name>helloRails</servlet-name>
<servlet-class>com.servletgarden.sycamore.RailsScalaServlet</servlet-class>
<init-param>
<param-name>rails_path</param-name>
<param-value>/lib/blog</param-value>
</init-param>
<init-param>
<param-name>gem_path</param-name>
<param-value>/lib/jruby/1.8</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>helloRails</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment