Thanks Ted,

I already spent some hours on that issue. I just wanted to
test the automatic form-validation - I'm a newbe and I performed
the validation in the FormBean methode before.
I just tried with the required-argument in the validation.xml ->

<formset>
      <form name="loginfb">
        <field property="username" depends="required">
          <arg0 key="fool" resource="false"/>
        </field>
      </form>
    </formset>

...

in the validator-rules.xml there is this entry

<validator name="required"
            classname="org.apache.struts.validator.FieldChecks"
               method="validateRequired"
         methodParams="java.lang.Object,
                       org.apache.commons.validator.ValidatorAction,
                       org.apache.commons.validator.Field,
                       org.apache.struts.action.ActionMessages,
                       javax.servlet.http.HttpServletRequest"
                  msg="errors.required"/>

so all seems quite OK, but it just don't work ... any idea? ... I just want
to use the
predefined validators but I can't :-(

Greetings and thx for any help


-----Ursprüngliche Nachricht-----
Von: Ted Husted [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 4. Januar 2006 14:52
An: Struts Users Mailing List
Betreff: Re: Strange validation exception


In a situation like this, the best thing is to create a new
application that contains just enough code to expose the error. Most
often, in creating the application to expose the error, you will find
the problem that is causing  the error. If not, you will have a
concise example to post, so that other people will be able to help.

-- HTH, Ted.
http://www.husted.com/poe/


On 1/2/06, Holger Moosbauer <[EMAIL PROTECTED]> wrote:
> Hello friends,
>
> I'm a struts newbe and I just can't find the
> answer on the internet to that validation exception.
> Does anyone know the answer? ... thx.
>
> org.apache.commons.validator.ValidatorException:
> org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Object,
> org.apache.commons.validator.ValidatorAction,
> org.apache.commons.validator.Field,
org.apache.struts.action.ActionMessages,
> javax.servlet.http.HttpServletRequest)
>
> pretty strange, he?
>
> Greetings
>
>
> ---------------------------------------------------------------------
> 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]


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

Reply via email to