Added: 
struts/action2/trunk/archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
URL: 
http://svn.apache.org/viewvc/struts/action2/trunk/archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml?rev=416417&view=auto
==============================================================================
--- 
struts/action2/trunk/archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
 (added)
+++ 
struts/action2/trunk/archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
 Thu Jun 22 09:44:06 2006
@@ -0,0 +1,81 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!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>
+       <display-name>SAF2 - Maven Archetype - Quickstart</display-name>
+       
+       <!-- Filters -->
+       <filter>
+        <filter-name>action2-cleanup</filter-name>
+        
<filter-class>org.apache.struts.action2.dispatcher.ActionContextCleanUp</filter-class>
+    </filter>
+    <filter>
+        <filter-name>sitemesh</filter-name>
+        
<filter-class>org.apache.struts.action2.sitemesh.FreeMarkerPageFilter</filter-class>
+    </filter>
+    <!--  
+    <filter>
+        <filter-name>sitemesh</filter-name>
+        
<filter-class>com.opensymphony.module.sitemesh.filter.PageFilter</filter-class>
+    </filter>
+    -->
+    <filter>
+        <filter-name>action2</filter-name>
+        
<filter-class>org.apache.struts.action2.dispatcher.FilterDispatcher</filter-class>
+    </filter>
+       
+       <filter-mapping>
+        <filter-name>action2-cleanup</filter-name>
+        <url-pattern>/*</url-pattern>
+    </filter-mapping>
+    <filter-mapping>
+        <filter-name>sitemesh</filter-name>
+        <url-pattern>/*</url-pattern>
+    </filter-mapping>
+    <filter-mapping>
+        <filter-name>action2</filter-name>
+        <url-pattern>/*</url-pattern>
+    </filter-mapping>
+       
+       <!-- Listeners -->
+       <listener>
+        
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
+    </listener>
+    
+    
+    <!-- Servlets -->
+    <servlet>
+        <servlet-name>dwr</servlet-name>
+        <servlet-class>uk.ltd.getahead.dwr.DWRServlet</servlet-class>
+        <init-param>
+            <param-name>debug</param-name>
+            <param-value>true</param-value>
+        </init-param>
+    </servlet>
+    
+    <servlet-mapping>
+        <servlet-name>dwr</servlet-name>
+        <url-pattern>/dwr/*</url-pattern>
+    </servlet-mapping>
+    
+    
+    <!-- Welcome file lists -->
+    <welcome-file-list>
+        <welcome-file>index.jsp</welcome-file>
+        <welcome-file>default.jsp</welcome-file>
+        <welcome-file>index.html</welcome-file>
+    </welcome-file-list>
+
+
+       <!-- Taglibs -->
+    <taglib>
+        <taglib-uri>sitemesh-page</taglib-uri>
+        <taglib-location>/WEB-INF/sitemesh-page.tld</taglib-location>
+    </taglib>
+    <taglib>
+        <taglib-uri>sitemesh-decorator</taglib-uri>
+        <taglib-location>/WEB-INF/sitemesh-decorator.tld</taglib-location>
+    </taglib>
+</web-app>

Propchange: 
struts/action2/trunk/archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
struts/action2/trunk/archetype/src/main/resources/archetype-resources/src/main/webapp/ftl/helloWorld.ftl
URL: 
http://svn.apache.org/viewvc/struts/action2/trunk/archetype/src/main/resources/archetype-resources/src/main/webapp/ftl/helloWorld.ftl?rev=416417&view=auto
==============================================================================
--- 
struts/action2/trunk/archetype/src/main/resources/archetype-resources/src/main/webapp/ftl/helloWorld.ftl
 (added)
+++ 
struts/action2/trunk/archetype/src/main/resources/archetype-resources/src/main/webapp/ftl/helloWorld.ftl
 Thu Jun 22 09:44:06 2006
@@ -0,0 +1,14 @@
+
+<!DOCTYPE html PUBLIC 
+       "-//W3C//DTD XHTML 1.1 Transitional//EN"
+       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
+       
+<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
+<head>
+       <title>Hello World</title>
+</head>
+<body>
+       Hello %{name}.
+</body>
+</html>
+

Added: 
struts/action2/trunk/archetype/src/main/resources/archetype-resources/src/main/webapp/ftl/index.ftl
URL: 
http://svn.apache.org/viewvc/struts/action2/trunk/archetype/src/main/resources/archetype-resources/src/main/webapp/ftl/index.ftl?rev=416417&view=auto
==============================================================================
--- 
struts/action2/trunk/archetype/src/main/resources/archetype-resources/src/main/webapp/ftl/index.ftl
 (added)
+++ 
struts/action2/trunk/archetype/src/main/resources/archetype-resources/src/main/webapp/ftl/index.ftl
 Thu Jun 22 09:44:06 2006
@@ -0,0 +1,16 @@
+<!DOCTYPE html PUBLIC 
+       "-//W3C//DTD XHTML 1.1 Transitional//EN"
+       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
+       
+<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
+<head>
+       <title>Index</title>
+</head>
+<body>
+       <@saf.form action="helloWorldAction">
+               <@saf.textfield label="What is your name?" name="name" />
+               <@saf.submit />
+       </@saf.form>
+</body>
+</html>
+       
\ No newline at end of file

Added: 
struts/action2/trunk/archetype/src/main/resources/archetype-resources/src/main/webapp/index.jsp
URL: 
http://svn.apache.org/viewvc/struts/action2/trunk/archetype/src/main/resources/archetype-resources/src/main/webapp/index.jsp?rev=416417&view=auto
==============================================================================
--- 
struts/action2/trunk/archetype/src/main/resources/archetype-resources/src/main/webapp/index.jsp
 (added)
+++ 
struts/action2/trunk/archetype/src/main/resources/archetype-resources/src/main/webapp/index.jsp
 Thu Jun 22 09:44:06 2006
@@ -0,0 +1,2 @@
+
+<% response.sendRedirect("index.action"); %>

Propchange: 
struts/action2/trunk/archetype/src/main/resources/archetype-resources/src/main/webapp/index.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
struts/action2/trunk/archetype/src/main/resources/archetype-resources/src/test/java/com/myComp/myApp/HelloWorldActionTest.java
URL: 
http://svn.apache.org/viewvc/struts/action2/trunk/archetype/src/main/resources/archetype-resources/src/test/java/com/myComp/myApp/HelloWorldActionTest.java?rev=416417&view=auto
==============================================================================
--- 
struts/action2/trunk/archetype/src/main/resources/archetype-resources/src/test/java/com/myComp/myApp/HelloWorldActionTest.java
 (added)
+++ 
struts/action2/trunk/archetype/src/main/resources/archetype-resources/src/test/java/com/myComp/myApp/HelloWorldActionTest.java
 Thu Jun 22 09:44:06 2006
@@ -0,0 +1,35 @@
+/*
+ * $Id: RequestUtils.java 394468 2006-04-16 12:16:03Z tmjee $
+ *
+ * Copyright 2006 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.myComp.myApp;
+
+import junit.framework.TestCase;
+
+import com.opensymphony.xwork.Action;
+
+/**
+ * 
+ */
+public class HelloWorldActionTest extends TestCase {
+    
+    public void testHelloWorldAction() throws Exception {
+        HelloWorldAction action = new HelloWorldAction();
+        String result = action.execute();
+        assertEquals(Action.SUCCESS, result);
+    }
+}
+

Propchange: 
struts/action2/trunk/archetype/src/main/resources/archetype-resources/src/test/java/com/myComp/myApp/HelloWorldActionTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
struts/action2/trunk/archetype/src/main/resources/archetype-resources/src/test/java/com/myComp/myApp/IndexActionTest.java
URL: 
http://svn.apache.org/viewvc/struts/action2/trunk/archetype/src/main/resources/archetype-resources/src/test/java/com/myComp/myApp/IndexActionTest.java?rev=416417&view=auto
==============================================================================
--- 
struts/action2/trunk/archetype/src/main/resources/archetype-resources/src/test/java/com/myComp/myApp/IndexActionTest.java
 (added)
+++ 
struts/action2/trunk/archetype/src/main/resources/archetype-resources/src/test/java/com/myComp/myApp/IndexActionTest.java
 Thu Jun 22 09:44:06 2006
@@ -0,0 +1,34 @@
+/*
+ * $Id: RequestUtils.java 394468 2006-04-16 12:16:03Z tmjee $
+ *
+ * Copyright 2006 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.myComp.myApp;
+
+import junit.framework.TestCase;
+
+import com.opensymphony.xwork.Action;
+
+/**
+ * 
+ */
+public class IndexActionTest extends TestCase {
+    
+    public void testIndexAction() throws Exception {
+        IndexAction action = new IndexAction();
+        String result = action.execute();
+        assertEquals(Action.SUCCESS, result);
+    }
+}

Propchange: 
struts/action2/trunk/archetype/src/main/resources/archetype-resources/src/test/java/com/myComp/myApp/IndexActionTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
struts/action2/trunk/archetype/src/main/resources/archetype-resources/src/test/resources/com/myComp/myApp/HelloWorldActionTest.properties
URL: 
http://svn.apache.org/viewvc/struts/action2/trunk/archetype/src/main/resources/archetype-resources/src/test/resources/com/myComp/myApp/HelloWorldActionTest.properties?rev=416417&view=auto
==============================================================================
--- 
struts/action2/trunk/archetype/src/main/resources/archetype-resources/src/test/resources/com/myComp/myApp/HelloWorldActionTest.properties
 (added)
+++ 
struts/action2/trunk/archetype/src/main/resources/archetype-resources/src/test/resources/com/myComp/myApp/HelloWorldActionTest.properties
 Thu Jun 22 09:44:06 2006
@@ -0,0 +1,2 @@
+# properties for testing goes here
+

Propchange: 
struts/action2/trunk/archetype/src/main/resources/archetype-resources/src/test/resources/com/myComp/myApp/HelloWorldActionTest.properties
------------------------------------------------------------------------------
    svn:eol-style = native


Reply via email to