Title: [674] trunk/rails-integration/samples/helloworld-1.2.3: Update sample to work with the generator
Revision
674
Author
tantalon
Date
2007-07-21 00:53:04 -0400 (Sat, 21 Jul 2007)

Log Message

Update sample to work with the generator

Added Paths


Property Changed

Diff

Added: trunk/rails-integration/samples/helloworld-1.2.3/WEB-INF/web.xml.erb (0 => 674)


--- trunk/rails-integration/samples/helloworld-1.2.3/WEB-INF/web.xml.erb	                        (rev 0)
+++ trunk/rails-integration/samples/helloworld-1.2.3/WEB-INF/web.xml.erb	2007-07-21 04:53:04 UTC (rev 674)
@@ -0,0 +1,57 @@
+<!DOCTYPE web-app PUBLIC
+  "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+  "http://java.sun.com/dtd/web-app_2_3.dtd">
+<web-app>
+
+	<context-param>
+		<param-name>jruby.standalone</param-name>
+		<param-value><%= config.standalone %></param-value>
+	</context-param>
+
+	<% if !config.standalone %>
+	<!-- jruby.home can be set either here, or as the system property jruby.home -->
+	<context-param>
+		<param-name>jruby.home</param-name>
+		<param-value><%= config.jruby_home || '/usr/local/jruby' %></param-value>
+	</context-param>
+	<% end %>
+
+	<context-param>
+		<param-name>rails.env</param-name>
+		<param-value><%= config.rails_env %></param-value>
+	</context-param>
+
+	<context-param>
+		<param-name>files.default</param-name>
+		<param-value>rails</param-value>
+		<description>The files servlet should forward to the rails servlet if no file could be found</description>
+	</context-param>
+
+	<listener>
+		<listener-class>org.jruby.webapp.RailsContextListener</listener-class>
+	</listener>
+
+	<servlet>
+		<servlet-name>rails</servlet-name>
+		<servlet-class><%= config.servlet %></servlet-class>
+	</servlet>
+	<servlet>
+		<servlet-name>files</servlet-name>
+		<servlet-class>org.jruby.webapp.FileServlet</servlet-class>
+	</servlet>
+
+	<!-- Allow all requests to go to the files servlet first -->
+	<servlet-mapping>
+		<servlet-name>files</servlet-name>
+		<url-pattern>/</url-pattern>
+	</servlet-mapping>
+
+	<% if config.datasource_jndi %>
+	<resource-ref>
+		<res-ref-name><%= config.datasource_jndi_name %></res-ref-name>
+		<res-type>javax.sql.DataSource</res-type>
+		<res-auth>Container</res-auth>
+	</resource-ref>
+	<% end %>
+
+</web-app>
\ No newline at end of file

Property changes: trunk/rails-integration/samples/helloworld-1.2.3/vendor/plugins


Name: svn:externals
   - goldspike-snapshot svn://rubyforge.org/var/svn/jruby-extras/trunk/rails-integration/plugins/goldspike-snapshot
   + goldspike-snapshot            svn://rubyforge.org/var/svn/jruby-extras/trunk/rails-integration/plugins/goldspike-snapshot
_______________________________________________
Jruby-extras-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/jruby-extras-devel

Reply via email to