dwinterfeldt 01/10/17 23:12:55
Modified: contrib/validator/web/example jsRegistration.jsp jsType.jsp
multiRegistration1.jsp multiRegistration2.jsp
registration.jsp type.jsp
Log:
Updated to use html:messages and html:messagesPresent instead of the Validator Tags
which are now deprecated.
Revision Changes Path
1.2 +4 -4 jakarta-struts/contrib/validator/web/example/jsRegistration.jsp
Index: jsRegistration.jsp
===================================================================
RCS file: /home/cvs/jakarta-struts/contrib/validator/web/example/jsRegistration.jsp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- jsRegistration.jsp 2001/07/09 02:30:55 1.1
+++ jsRegistration.jsp 2001/10/18 06:12:55 1.2
@@ -11,14 +11,14 @@
</head>
<body bgcolor="white">
-<validator:errorsExist>
+<logic:messagesPresent>
<bean:message key="errors.header"/>
<ul>
- <validator:errors id="error">
+ <html:messages id="error">
<li><bean:write name="error"/></li>
- </validator:errors>
+ </html:messages>
</ul><hr>
-</validator:errorsExist>
+</logic:messagesPresent>
<html:form action="registration" onsubmit="return validateRegistrationForm(this);">
<html:hidden property="action"/>
1.2 +4 -4 jakarta-struts/contrib/validator/web/example/jsType.jsp
Index: jsType.jsp
===================================================================
RCS file: /home/cvs/jakarta-struts/contrib/validator/web/example/jsType.jsp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- jsType.jsp 2001/07/09 02:30:55 1.1
+++ jsType.jsp 2001/10/18 06:12:55 1.2
@@ -11,14 +11,14 @@
</head>
<body bgcolor="white">
-<validator:errorsExist>
+<logic:messagesPresent>
<bean:message key="errors.header"/>
<ul>
- <validator:errors id="error">
+ <html:messages id="error">
<li><bean:write name="error"/></li>
- </validator:errors>
+ </html:messages>
</ul><hr>
-</validator:errorsExist>
+</logic:messagesPresent>
<html:form action="jsType" onsubmit="return validateJsTypeForm(this);">
1.2 +4 -4
jakarta-struts/contrib/validator/web/example/multiRegistration1.jsp
Index: multiRegistration1.jsp
===================================================================
RCS file:
/home/cvs/jakarta-struts/contrib/validator/web/example/multiRegistration1.jsp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- multiRegistration1.jsp 2001/07/09 02:30:55 1.1
+++ multiRegistration1.jsp 2001/10/18 06:12:55 1.2
@@ -11,14 +11,14 @@
</head>
<body bgcolor="white">
-<validator:errorsExist>
+<logic:messagesPresent>
<bean:message key="errors.header"/>
<ul>
- <validator:errors id="error">
+ <html:messages id="error">
<li><bean:write name="error"/></li>
- </validator:errors>
+ </html:messages>
</ul><hr>
-</validator:errorsExist>
+</logic:messagesPresent>
<html:form action="multiRegistration" onsubmit="return
validateMultiRegistrationForm(this);">
1.2 +4 -4
jakarta-struts/contrib/validator/web/example/multiRegistration2.jsp
Index: multiRegistration2.jsp
===================================================================
RCS file:
/home/cvs/jakarta-struts/contrib/validator/web/example/multiRegistration2.jsp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- multiRegistration2.jsp 2001/07/09 02:30:55 1.1
+++ multiRegistration2.jsp 2001/10/18 06:12:55 1.2
@@ -11,14 +11,14 @@
</head>
<body bgcolor="white">
-<validator:errorsExist>
+<logic:messagesPresent>
<bean:message key="errors.header"/>
<ul>
- <validator:errors id="error">
+ <html:messages id="error">
<li><bean:write name="error"/></li>
- </validator:errors>
+ </html:messages>
</ul><hr>
-</validator:errorsExist>
+</logic:messagesPresent>
<html:form action="multiRegistration" onsubmit="return
validateMultiRegistrationForm(this);">
1.2 +4 -5 jakarta-struts/contrib/validator/web/example/registration.jsp
Index: registration.jsp
===================================================================
RCS file: /home/cvs/jakarta-struts/contrib/validator/web/example/registration.jsp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- registration.jsp 2001/07/09 02:30:55 1.1
+++ registration.jsp 2001/10/18 06:12:55 1.2
@@ -2,7 +2,6 @@
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
-<%@ taglib uri="/WEB-INF/struts-validator.tld" prefix="validator" %>
<html:html>
<head>
@@ -11,14 +10,14 @@
</head>
<body bgcolor="white">
-<validator:errorsExist>
+<logic:messagesPresent>
<bean:message key="errors.header"/>
<ul>
- <validator:errors id="error">
+ <html:messages id="error">
<li><bean:write name="error"/></li>
- </validator:errors>
+ </html:messages>
</ul><hr>
-</validator:errorsExist>
+</logic:messagesPresent>
<html:form action="registration">
1.2 +4 -4 jakarta-struts/contrib/validator/web/example/type.jsp
Index: type.jsp
===================================================================
RCS file: /home/cvs/jakarta-struts/contrib/validator/web/example/type.jsp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- type.jsp 2001/07/09 02:30:55 1.1
+++ type.jsp 2001/10/18 06:12:55 1.2
@@ -11,14 +11,14 @@
</head>
<body bgcolor="white">
-<validator:errorsExist>
+<logic:messagesPresent>
<bean:message key="errors.header"/>
<ul>
- <validator:errors id="error">
+ <html:messages id="error">
<li><bean:write name="error"/></li>
- </validator:errors>
+ </html:messages>
</ul><hr>
-</validator:errorsExist>
+</logic:messagesPresent>
<html:form action="type">