]> source.dussan.org Git - archiva.git/commitdiff
[MRM-46] more skeleton webwork webapp
authorBrett Porter <brett@apache.org>
Mon, 9 Jan 2006 06:03:31 +0000 (06:03 +0000)
committerBrett Porter <brett@apache.org>
Mon, 9 Jan 2006 06:03:31 +0000 (06:03 +0000)
git-svn-id: https://svn.apache.org/repos/asf/maven/repository-manager/trunk@367217 13f79535-47bb-0310-9956-ffa450edef68

maven-repository-webapp/src/main/resources/validators.xml [new file with mode: 0644]
maven-repository-webapp/src/main/resources/xwork.xml [new file with mode: 0644]
maven-repository-webapp/src/main/webapp/WEB-INF/jsp/index.jsp [new file with mode: 0644]
maven-repository-webapp/src/main/webapp/WEB-INF/plexus.xml [new file with mode: 0644]
maven-repository-webapp/src/main/webapp/WEB-INF/web.xml
maven-repository-webapp/src/main/webapp/index.jsp [deleted file]

diff --git a/maven-repository-webapp/src/main/resources/validators.xml b/maven-repository-webapp/src/main/resources/validators.xml
new file mode 100644 (file)
index 0000000..e06880d
--- /dev/null
@@ -0,0 +1,29 @@
+<!--
+  ~ Copyright 2005-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.
+  -->
+
+<validators>
+  <validator name="required" class="com.opensymphony.webwork.validators.JavaScriptRequiredFieldValidator"/>
+  <validator name="requiredstring" class="com.opensymphony.webwork.validators.JavaScriptRequiredStringValidator"/>
+  <validator name="int" class="com.opensymphony.webwork.validators.JavaScriptIntRangeFieldValidator"/>
+  <validator name="date" class="com.opensymphony.webwork.validators.JavaScriptDateRangeFieldValidator"/>
+  <validator name="expression" class="com.opensymphony.xwork.validator.validators.ExpressionValidator"/>
+  <validator name="fieldexpression" class="com.opensymphony.xwork.validator.validators.FieldExpressionValidator"/>
+  <validator name="email" class="com.opensymphony.webwork.validators.JavaScriptEmailValidator"/>
+  <validator name="url" class="com.opensymphony.webwork.validators.JavaScriptURLValidator"/>
+  <validator name="visitor" class="com.opensymphony.webwork.validators.JavaScriptVisitorFieldValidator"/>
+  <validator name="conversion" class="com.opensymphony.xwork.validator.validators.ConversionErrorFieldValidator"/>
+  <validator name="stringlength" class="com.opensymphony.xwork.validator.validators.StringLengthFieldValidator"/>
+</validators>
\ No newline at end of file
diff --git a/maven-repository-webapp/src/main/resources/xwork.xml b/maven-repository-webapp/src/main/resources/xwork.xml
new file mode 100644 (file)
index 0000000..fdc3e0d
--- /dev/null
@@ -0,0 +1,35 @@
+<!--
+  ~ Copyright 2005-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.
+  -->
+
+<!DOCTYPE xwork PUBLIC "-//OpenSymphony Group//XWork 1.0//EN"
+    "http://www.opensymphony.com/xwork/xwork-1.0.dtd">
+
+<xwork>
+  <!-- Include webwork defaults (from WebWork JAR). -->
+  <include file="webwork-default.xml"/>
+
+  <!-- Configuration for the default package. -->
+  <package name="default" extends="webwork-default">
+    <!-- Default interceptor stack. -->
+    <default-interceptor-ref name="defaultStack"/>
+
+    <!-- Action: Front page -->
+    <action name="index" class="com.opensymphony.xwork.ActionSupport">
+      <result name="success" type="dispatcher">/WEB-INF/jsp/index.jsp</result>
+    </action>
+  </package>
+</xwork>
+
diff --git a/maven-repository-webapp/src/main/webapp/WEB-INF/jsp/index.jsp b/maven-repository-webapp/src/main/webapp/WEB-INF/jsp/index.jsp
new file mode 100644 (file)
index 0000000..86c9666
--- /dev/null
@@ -0,0 +1,12 @@
+<%@ taglib uri="webwork" prefix="ww" %>
+<html>
+<head>
+  <title>Maven Repository Manager</title>
+</head>
+
+<body>
+
+<h1>Maven Repository Manager</h1>
+
+</body>
+</html>
\ No newline at end of file
diff --git a/maven-repository-webapp/src/main/webapp/WEB-INF/plexus.xml b/maven-repository-webapp/src/main/webapp/WEB-INF/plexus.xml
new file mode 100644 (file)
index 0000000..12e677d
--- /dev/null
@@ -0,0 +1,114 @@
+<!--
+  ~ Copyright 2005-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.
+  -->
+
+<plexus>
+  <!--
+    <load-on-start>
+      <component>
+        <role>org.codehaus.plexus.taskqueue.execution.TaskQueueExecutor</role>
+        <role-hint>build-project</role-hint>
+      </component>
+      <component>
+        <role>org.codehaus.plexus.taskqueue.execution.TaskQueueExecutor</role>
+        <role-hint>check-out-project</role-hint>
+      </component>
+    </load-on-start>
+  -->
+
+  <components>
+
+    <!--
+     | Object factory for WebWork
+     -->
+    <component>
+      <role>com.opensymphony.xwork.ObjectFactory</role>
+      <implementation>org.codehaus.plexus.xwork.PlexusObjectFactory</implementation>
+    </component>
+
+    <!--
+     | Logger manager
+     -->
+    <!--
+        <component>
+          <role>org.codehaus.plexus.logging.LoggerManager</role>
+          <implementation>org.codehaus.plexus.logging.log4j.Log4JLoggerManager</implementation>
+          <lifecycle-handler>basic</lifecycle-handler>
+
+          <configuration>
+            <threshold>DEBUG</threshold>
+            <default-appender>console,rolling</default-appender>
+            <appenders>
+              <appender>
+                <id>console</id>
+                <threshold>DEBUG</threshold>
+                <type>org.apache.log4j.ConsoleAppender</type>
+                <conversion-pattern>%d [%t] %-5p %-30c{1} - %m%n</conversion-pattern>
+              </appender>
+
+              <appender>
+                <id>rolling</id>
+                <threshold>DEBUG</threshold>
+                <type>org.apache.log4j.RollingFileAppender</type>
+                <conversion-pattern>%-4r [%t] %-5p %c %x - %m%n</conversion-pattern>
+
+                <properties>
+                  <property>
+                    <name>file</name>
+                    <value>${plexus.home}/logs/continuum.log</value>
+                  </property>
+                  <property>
+                    <name>append</name>
+                    <value>true</value>
+                  </property>
+                  <property>
+                    <name>maxBackupIndex</name>
+                    <value>10</value>
+                  </property>
+                  <property>
+                    <name>maxFileSize</name>
+                    <value>10MB</value>
+                  </property>
+                </properties>
+              </appender>
+            </appenders>
+            <levels>
+              <level>
+                <hierarchy>org.codehaus.plexus.velocity</hierarchy>
+                <level>WARN</level>
+              </level>
+              <level>
+                <hierarchy>org.codehaus.plexus.mailsender.MailSender</hierarchy>
+                <level>INFO</level>
+              </level>
+              <level>
+                <hierarchy>org.apache.jasper</hierarchy>
+                <level>INFO</level>
+              </level>
+              <level>
+                <hierarchy>com.opensymphony.xwork</hierarchy>
+                <level>INFO</level>
+              </level>
+              <level>
+                <hierarchy>com.opensymphony.webwork</hierarchy>
+                <level>INFO</level>
+              </level>
+            </levels>
+          </configuration>
+        </component>
+    -->
+  </components>
+
+</plexus>
index 06b60ad7af0e8663a5ca2a970b6caeed8ad466f7..5c664e55c9aeef1446d1f65c54c7acc1526ff6f2 100644 (file)
@@ -28,7 +28,6 @@
   </servlet-mapping>
 
   <welcome-file-list>
-    <welcome-file>index.html</welcome-file>
-    <welcome-file>Index.action</welcome-file>
+    <welcome-file>index.action</welcome-file>
   </welcome-file-list>
 </web-app>
diff --git a/maven-repository-webapp/src/main/webapp/index.jsp b/maven-repository-webapp/src/main/webapp/index.jsp
deleted file mode 100644 (file)
index c38169b..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-<html>
-<body>
-<h2>Hello World!</h2>
-</body>
-</html>