Date: 2004-05-25T09:33:36 Editor: 165.21.154.74 <> Wiki: Apache Struts Wiki Page: StrutsBeginnerValidatorFramework URL: http://wiki.apache.org/struts/StrutsBeginnerValidatorFramework
no comment Change Log: ------------------------------------------------------------------------------ @@ -7,6 +7,10 @@ Hope this article can benefit the entire community. +Sincerely, +e-null + += STRUTS VALIDATION FRAMEWORK = Struts validator framework is neat way of validating you UI input. Some of the most common UI input validation includes, checking for mandatory fields, email validation, credit card validation, etc. @@ -22,7 +26,7 @@ 7. Add the form to the form set in the validator.xml -''' Step 1. Create an action Form class ''' +== ''' Step 1. Create an action Form class ''' == {{{ @@ -43,7 +47,7 @@ This form will contain one field called user name field, that is mandatory. -''' Step 2. Create a action class ''' +== ''' Step 2. Create a action class ''' == {{{ public class UserNameAction extends Action @@ -62,7 +66,7 @@ }}} -''' Step 3. Set up the reource bundle ''' +== ''' Step 3. Set up the reource bundle ''' == {{{ <message-resources parameter="ApplicationResources"/> @@ -74,7 +78,7 @@ userNameForm.userName= User Name }}} -''' Step 4. Create a JSP as an input ''' +== ''' Step 4. Create a JSP as an input ''' == {{{ @@ -94,7 +98,7 @@ }}} -''' Step 5. Map the jsp page with the action form and the action class inside struts-config.xml. ''' +== ''' Step 5. Map the jsp page with the action form and the action class inside struts-config.xml. ''' == {{{ @@ -122,7 +126,7 @@ }}} -''' Step 7. Add the form to the form set in the validator.xml''' +== ''' Step 7. Add the form to the form set in the validator.xml''' == {{{ <form-validation> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]