dwinterfeldt 01/10/17 23:21:35 Modified: contrib/validator/web/jdbc-example jsRegistration.jsp jsRegistrationSearch.jsp multiRegistration1.jsp multiRegistration2.jsp multiRegistrationSearch.jsp registration.jsp registrationSearch.jsp type.jsp Log: Updated to use html:messages and html:messagesPresent for errors instead of the Validator Tags which are now deprecated. Revision Changes Path 1.2 +4 -4 jakarta-struts/contrib/validator/web/jdbc-example/jsRegistration.jsp Index: jsRegistration.jsp =================================================================== RCS file: /home/cvs/jakarta-struts/contrib/validator/web/jdbc-example/jsRegistration.jsp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- jsRegistration.jsp 2001/07/09 02:31:04 1.1 +++ jsRegistration.jsp 2001/10/18 06:21:35 1.2 @@ -14,14 +14,14 @@ <template:put name='main'> <font size=+2><bean:message key="jsRegistrationForm.title"/></font><BR><BR> - <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> <validator:messagesExist> 1.2 +4 -4 jakarta-struts/contrib/validator/web/jdbc-example/jsRegistrationSearch.jsp Index: jsRegistrationSearch.jsp =================================================================== RCS file: /home/cvs/jakarta-struts/contrib/validator/web/jdbc-example/jsRegistrationSearch.jsp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- jsRegistrationSearch.jsp 2001/07/09 02:31:04 1.1 +++ jsRegistrationSearch.jsp 2001/10/18 06:21:35 1.2 @@ -12,14 +12,14 @@ <template:put name='sidebar' content='/WEB-INF/templates/sidebar.jsp' /> <template:put name='main'> <font size=+2><bean:message key="jsRegistrationForm.title.search"/></font><BR><BR> - <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> <validator:messagesExist> 1.2 +4 -4 jakarta-struts/contrib/validator/web/jdbc-example/multiRegistration1.jsp Index: multiRegistration1.jsp =================================================================== RCS file: /home/cvs/jakarta-struts/contrib/validator/web/jdbc-example/multiRegistration1.jsp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- multiRegistration1.jsp 2001/07/09 02:31:04 1.1 +++ multiRegistration1.jsp 2001/10/18 06:21:35 1.2 @@ -14,14 +14,14 @@ <template:put name='main'> <font size=+2><bean:message key="multiRegistrationForm.title"/></font><BR><BR> - <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/jdbc-example/multiRegistration2.jsp Index: multiRegistration2.jsp =================================================================== RCS file: /home/cvs/jakarta-struts/contrib/validator/web/jdbc-example/multiRegistration2.jsp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- multiRegistration2.jsp 2001/07/09 02:31:04 1.1 +++ multiRegistration2.jsp 2001/10/18 06:21:35 1.2 @@ -14,14 +14,14 @@ <template:put name='main'> <font size=+2><bean:message key="multiRegistrationForm.title"/></font><BR><BR> - <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);"> <html:hidden property="action"/> 1.2 +4 -4 jakarta-struts/contrib/validator/web/jdbc-example/multiRegistrationSearch.jsp Index: multiRegistrationSearch.jsp =================================================================== RCS file: /home/cvs/jakarta-struts/contrib/validator/web/jdbc-example/multiRegistrationSearch.jsp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- multiRegistrationSearch.jsp 2001/07/09 02:31:04 1.1 +++ multiRegistrationSearch.jsp 2001/10/18 06:21:35 1.2 @@ -12,14 +12,14 @@ <template:put name='sidebar' content='/WEB-INF/templates/sidebar.jsp' /> <template:put name='main'> <font size=+2><bean:message key="multiRegistrationForm.title.search"/></font><BR><BR> - <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> <validator:messagesExist> 1.2 +4 -4 jakarta-struts/contrib/validator/web/jdbc-example/registration.jsp Index: registration.jsp =================================================================== RCS file: /home/cvs/jakarta-struts/contrib/validator/web/jdbc-example/registration.jsp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- registration.jsp 2001/07/09 02:31:04 1.1 +++ registration.jsp 2001/10/18 06:21:35 1.2 @@ -14,14 +14,14 @@ <template:put name='main'> <font size=+2><bean:message key="registrationForm.title"/></font><BR><BR> - <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> <validator:messagesExist> 1.2 +4 -4 jakarta-struts/contrib/validator/web/jdbc-example/registrationSearch.jsp Index: registrationSearch.jsp =================================================================== RCS file: /home/cvs/jakarta-struts/contrib/validator/web/jdbc-example/registrationSearch.jsp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- registrationSearch.jsp 2001/07/09 02:31:04 1.1 +++ registrationSearch.jsp 2001/10/18 06:21:35 1.2 @@ -12,14 +12,14 @@ <template:put name='sidebar' content='/WEB-INF/templates/sidebar.jsp' /> <template:put name='main'> <font size=+2><bean:message key="registrationForm.title.search"/></font><BR><BR> - <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> <validator:messagesExist> 1.2 +4 -4 jakarta-struts/contrib/validator/web/jdbc-example/type.jsp Index: type.jsp =================================================================== RCS file: /home/cvs/jakarta-struts/contrib/validator/web/jdbc-example/type.jsp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- type.jsp 2001/07/09 02:31:04 1.1 +++ type.jsp 2001/10/18 06:21:35 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.do">