Hi everyone,

I am having difficulty getting validator to work with my module based struts 
application.  I have tried serval approches to no avail.

My Struts Config and module config have:

  <plug-in className="org.apache.struts.validator.ValidatorPlugIn">
    <set-property property="pathnames" 
value="/WEB-INF/validator-rules.xml,,/WEB-INF/validation.xml,/WEB-INF/module/validation.xml"/>
  </plug-in>

My /module/validation.xml has:
<form-validation>
  <formset>
    <form name="formName">
        <field property="fieldName" depends="integer">
          <arg0 key="label.fieldName" resource="com.module.resources.module"/>
        </field>
    </form>
  </formset>
</form-validation>

If I use client side <html:javascript formName="formName">
It does generate the script with all validations listed in the xml.  so I think 
that the Plug-in is correct.  I would use the client side script except it 
generates incorrectly.  It creates methods like
formName_IntegerValidations()  but the actual validateInteger calls for just 
IntegerValidation() (No formName).

If I use client side, it never calls the validations.  

I have also tried using:
<form name="/action">
and
<form name="/module/action">

with no difference.

Any thoughts?



--------------------------------------------------------

                People are conversing... without posting their email or filling 
up their mail box. roomity.com http://roomity.com/launch.jsp No sign up to read 
or search this Rich Internet App
         ~~1122993898600~~
--------------------------------------------------------


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

Reply via email to