Skip to content

Instantly share code, notes, and snippets.

@yokolet
Created February 16, 2011 00:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yokolet/828572 to your computer and use it in GitHub Desktop.
Save yokolet/828572 to your computer and use it in GitHub Desktop.
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