Here is the code that I used.
validation.xml
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE form-validation PUBLIC "-//Apache Software Foundation//DTD
Commons Validator Rules Configuration 1.0//EN"
          "http://jakarta.apache.org/commons/dtds/validator_1_0.dtd";>

<form-validation>
      <formset>
            <form name="myValForm">
                        <field  property="name" depends="required">
                                     <arg0 key="MyValForm.name" />
                        </field>
            </form>
      </formset>
</form-validation>

Form class
public class MyValForm extends ValidatorForm {
.....
}


                                                                                
                                                       
                      Laurie Harper                                             
                                                       
                      <[EMAIL PROTECTED]        To:       
user@struts.apache.org                                                        
                      et>                      cc:                              
                                                       
                      Sent by: news            Subject:  Re: Tiles and 
Validator                                                       
                      <[EMAIL PROTECTED]                                        
                                                        
                      rg>                                                       
                                                       
                                                                                
                                                       
                                                                                
                                                       
                      02/28/2006 02:18                                          
                                                       
                      AM                                                        
                                                       
                      Please respond to                                         
                                                       
                      "Struts Users                                             
                                                       
                      Mailing List"                                             
                                                       
                                                                                
                                                       
                                                                                
                                                       




Shiby Maria John wrote:
> I have a tiles application. I tried to introduce validator framework
> into it for validations.
> But it is not working. If i change the tiles to make a single jsp
> page, the validator worked.
> Will the both not work together??

Tiles and validator will work together fine. What does your
configuration look like? In particular, are your form beans based on
ValidatorForm or ValidatorActionForm?

L.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]









---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to