archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From och...@apache.org
Subject svn commit: r442940 - in /maven/archiva/trunk/archiva-webapp/src/main/webapp/WEB-INF/jsp: admin/include/registerUserForm.jspf admin/registerAdmin.jsp register.jsp
Date Wed, 13 Sep 2006 11:07:12 GMT
Author: oching
Date: Wed Sep 13 04:07:11 2006
New Revision: 442940

URL: http://svn.apache.org/viewvc?view=rev&rev=442940
Log:
Created one input form used by register.jsp and registerAdmin.jsp.

Added:
    maven/archiva/trunk/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/include/registerUserForm.jspf
Modified:
    maven/archiva/trunk/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/registerAdmin.jsp
    maven/archiva/trunk/archiva-webapp/src/main/webapp/WEB-INF/jsp/register.jsp

Added: maven/archiva/trunk/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/include/registerUserForm.jspf
URL: http://svn.apache.org/viewvc/maven/archiva/trunk/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/include/registerUserForm.jspf?view=auto&rev=442940
==============================================================================
--- maven/archiva/trunk/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/include/registerUserForm.jspf
(added)
+++ maven/archiva/trunk/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/include/registerUserForm.jspf
Wed Sep 13 04:07:11 2006
@@ -0,0 +1,23 @@
+<%--
+  ~ 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.
+  --%>
+<%@ taglib prefix="ww" uri="/webwork" %>
+<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+
+<ww:textfield label="Username"         name="username" size="30" required="true"/>
+<ww:password  label="Password"         name="password" size="20" required="true"/>
+<ww:password  label="Confirm Password" name="confirmPassword" size="20" required="true"/>
+<ww:textfield label="Full Name"        name="fullName" size="30" required="true"/>
+<ww:textfield label="Email Address"    name="email" size="50"    required="true"/>
\ No newline at end of file

Modified: maven/archiva/trunk/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/registerAdmin.jsp
URL: http://svn.apache.org/viewvc/maven/archiva/trunk/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/registerAdmin.jsp?view=diff&rev=442940&r1=442939&r2=442940
==============================================================================
--- maven/archiva/trunk/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/registerAdmin.jsp
(original)
+++ maven/archiva/trunk/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/registerAdmin.jsp
Wed Sep 13 04:07:11 2006
@@ -34,56 +34,8 @@
 
     <h2>Setup an Administrator Account</h2>
     <ww:form action="registerAdminAccount" method="post" namespace="/admin">
-      <table class="bodyTable">
-        <tr class="b">
-          <th>
-            Username
-          </th>
-          <td>
-            <ww:textfield name="username" size="30"/>
-          </td>
-        </tr>
-        <tr class="a">
-          <th>
-            Password
-          </th>
-          <td>
-            <ww:password name="password" size="20"/>
-          </td>
-        </tr>
-        <tr class="b">
-          <th>
-            Confirm Password
-          </th>
-          <td>
-            <ww:password name="confirmPassword" size="20"/>
-          </td>
-
-        </tr>
-        <tr class="a">
-          <th>
-            Full Name
-          </th>
-          <td>
-            <ww:textfield name="fullName" size="30"/>
-          </td>
-        </tr>
-
-        <tr class="b">
-          <th>
-            Email
-          </th>
-          <td>
-            <ww:textfield name="email" size="50 "/>
-          </td>
-        </tr>
-        <tr class="a">
-          <td></td>
-          <td>
-            <ww:submit value="Register"/>
-          </td>
-        </tr>
-      </table>
+      <%@ include file="/WEB-INF/jsp/admin/include/registerUserForm.jspf" %>      

+      <ww:submit value="Register"/>
     </ww:form>
 
   </div>

Modified: maven/archiva/trunk/archiva-webapp/src/main/webapp/WEB-INF/jsp/register.jsp
URL: http://svn.apache.org/viewvc/maven/archiva/trunk/archiva-webapp/src/main/webapp/WEB-INF/jsp/register.jsp?view=diff&rev=442940&r1=442939&r2=442940
==============================================================================
--- maven/archiva/trunk/archiva-webapp/src/main/webapp/WEB-INF/jsp/register.jsp (original)
+++ maven/archiva/trunk/archiva-webapp/src/main/webapp/WEB-INF/jsp/register.jsp Wed Sep 13
04:07:11 2006
@@ -45,13 +45,9 @@
 	     the ww:form creates the table, labels, context sensitive actionerrors, requirements
indicators, etc...
 	       - Joakim --%>
     
-    <ww:form action="register" method="post">
-		<ww:textfield label="Username"         name="username" size="30" required="true"/>
-		<ww:password  label="Password"         name="password" size="20" required="true"/>
-		<ww:password  label="Confirm Password" name="confirmPassword" size="20" required="true"/>
-        <ww:textfield label="Full Name"        name="fullName" size="30" required="true"/>
-        <ww:textfield label="Email Address"    name="email" size="50"    required="true"/>
-        <ww:submit    value="Register"/>
+    <ww:form action="register" method="post">   	
+      <%@ include file="/WEB-INF/jsp/admin/include/registerUserForm.jspf" %>
+      <ww:submit    value="Register"/>
     </ww:form>
 
   </div>



Mime
View raw message