forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject svn commit: rev 9549 - xml/forrest/trunk/scratchpad/forrestbot2/webapp/src/java/org/apache/forrest/forrestbot/webapp/form
Date Wed, 17 Mar 2004 06:33:02 GMT
Author: crossley
Date: Tue Mar 16 22:33:01 2004
New Revision: 9549

Modified:
   xml/forrest/trunk/scratchpad/forrestbot2/webapp/src/java/org/apache/forrest/forrestbot/webapp/form/BaseDynaActionForm.java
   xml/forrest/trunk/scratchpad/forrestbot2/webapp/src/java/org/apache/forrest/forrestbot/webapp/form/LoginForm.java
Log:
Testing a fix of dos2unix line endings.


Modified: xml/forrest/trunk/scratchpad/forrestbot2/webapp/src/java/org/apache/forrest/forrestbot/webapp/form/BaseDynaActionForm.java
==============================================================================
--- xml/forrest/trunk/scratchpad/forrestbot2/webapp/src/java/org/apache/forrest/forrestbot/webapp/form/BaseDynaActionForm.java
(original)
+++ xml/forrest/trunk/scratchpad/forrestbot2/webapp/src/java/org/apache/forrest/forrestbot/webapp/form/BaseDynaActionForm.java
Tue Mar 16 22:33:01 2004
@@ -13,34 +13,34 @@
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
-/*
- * Created on Feb 11, 2004
- */
-package org.apache.forrest.forrestbot.webapp.form;
-
-import org.apache.log4j.Logger;
-import org.apache.struts.action.ActionError;
-import org.apache.struts.action.ActionMessages;
-import org.apache.struts.action.DynaActionForm;
-
-
-public class BaseDynaActionForm extends DynaActionForm {
-	private static Logger log = Logger.getLogger(BaseDynaActionForm.class);
-	
-	protected boolean isEmptyString(Object o) {
-		return o == null || 
-			o.getClass() != String.class || 
-			((String) o).trim().equals("");
-	}
-
-	protected ActionMessages checkRequiredFields(String [] fields) {
-		ActionMessages errors = new ActionMessages();
-		for (int i = 0; i < fields.length; i++)
-		if (isEmptyString(get(fields[i]))) {
-			log.debug(fields[i] + " is empty string");
-			errors.add(fields[i], new ActionError("error.required", fields[i]));
-		}
-
-		return errors;
-	}
-}
+/*
+ * Created on Feb 11, 2004
+ */
+package org.apache.forrest.forrestbot.webapp.form;
+
+import org.apache.log4j.Logger;
+import org.apache.struts.action.ActionError;
+import org.apache.struts.action.ActionMessages;
+import org.apache.struts.action.DynaActionForm;
+
+
+public class BaseDynaActionForm extends DynaActionForm {
+	private static Logger log = Logger.getLogger(BaseDynaActionForm.class);
+	
+	protected boolean isEmptyString(Object o) {
+		return o == null || 
+			o.getClass() != String.class || 
+			((String) o).trim().equals("");
+	}
+
+	protected ActionMessages checkRequiredFields(String [] fields) {
+		ActionMessages errors = new ActionMessages();
+		for (int i = 0; i < fields.length; i++)
+		if (isEmptyString(get(fields[i]))) {
+			log.debug(fields[i] + " is empty string");
+			errors.add(fields[i], new ActionError("error.required", fields[i]));
+		}
+
+		return errors;
+	}
+}

Modified: xml/forrest/trunk/scratchpad/forrestbot2/webapp/src/java/org/apache/forrest/forrestbot/webapp/form/LoginForm.java
==============================================================================
--- xml/forrest/trunk/scratchpad/forrestbot2/webapp/src/java/org/apache/forrest/forrestbot/webapp/form/LoginForm.java
(original)
+++ xml/forrest/trunk/scratchpad/forrestbot2/webapp/src/java/org/apache/forrest/forrestbot/webapp/form/LoginForm.java
Tue Mar 16 22:33:01 2004
@@ -13,28 +13,28 @@
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
-/*
- * Created on Feb 11, 2004
- */
-package org.apache.forrest.forrestbot.webapp.form;
-
-import javax.servlet.http.HttpServletRequest;
-
-import org.apache.log4j.Logger;
-import org.apache.struts.action.ActionErrors;
-import org.apache.struts.action.ActionMapping;
-
-public class LoginForm extends BaseDynaActionForm {
-
-	private static Logger log = Logger.getLogger(LoginForm.class);
-	
-	/* (non-Javadoc)
-	 * @see org.apache.struts.action.ActionForm#validate(org.apache.struts.action.ActionMapping,
javax.servlet.http.HttpServletRequest)
-	 */
-	public ActionErrors validate(ActionMapping arg0, HttpServletRequest arg1) {
-		ActionErrors errors = new ActionErrors();
-		errors.add(checkRequiredFields(new String[] {"username", "password"}));
-		return errors;
-	}
-
-}
+/*
+ * Created on Feb 11, 2004
+ */
+package org.apache.forrest.forrestbot.webapp.form;
+
+import javax.servlet.http.HttpServletRequest;
+
+import org.apache.log4j.Logger;
+import org.apache.struts.action.ActionErrors;
+import org.apache.struts.action.ActionMapping;
+
+public class LoginForm extends BaseDynaActionForm {
+
+	private static Logger log = Logger.getLogger(LoginForm.class);
+	
+	/* (non-Javadoc)
+	 * @see org.apache.struts.action.ActionForm#validate(org.apache.struts.action.ActionMapping,
javax.servlet.http.HttpServletRequest)
+	 */
+	public ActionErrors validate(ActionMapping arg0, HttpServletRequest arg1) {
+		ActionErrors errors = new ActionErrors();
+		errors.add(checkRequiredFields(new String[] {"username", "password"}));
+		return errors;
+	}
+
+}

Mime
View raw message