You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Imran Bohoran <Im...@virtusa.com> on 2003/03/19 06:48:26 UTC

Validator question

Hey all

I'm playing around with the Validator. I had a look at the example and am
doing my app now. 
I'm using DynaValidatorActionForm. 
I have setup my validator plugin in the struts-config.xml and while starting
up the app it shows that the validation files are loaded.
But here's what's happening. I'm executing one action by putting making some
errors in the page. But the validator is not kicking in.
Its simply going to the calling page.

      <form name="nextAction">
         <field property="adminFee"
                depends="integer,maxLength">
             <arg0 key="lbl.pricingType.adminFee"/> 
             <arg1 name="maxlength" key="${var:maxlength}"
                   resource="false"
             /> 
             <var>
                 <var-name>maxlength</var-name>
                 <var-value>2</var-value>
             </var>    
         </field>
      </form> 

Where nextAction is the path attribute of the action mapping.

Any idea what I'm missing. Appreciate your inputs.

- Imran