Hi,

I keep working with validator and I know more about the problem.

When a action in the name attribute has the name of the form who I have 
defined in validation.xml, the crash occurs, others accion works well. It 
is like there is an error in validation.xml in the form element. 

Now the form element in Validation xml is.

        <form name="CocheForm">
            <field
                property="marca"
                depends="required">
                    <arg key="cocheForm.marca"/>
            </field>
        </form>

and the cothe of FormCoche.java is

public final class FormCoche extends ValidatorForm {
....
        private String  marca;
...

        public String getMarca() {
                return marca;
        }
        public void setMarca(String marca) {
                this.marca = marca;
        }
...
}

in struts-config.xml I have the next entries.

    <form-bean       name="CocheForm"
                     type="rallie.forms.FormCoche">
    </form-bean>
....

        <action
            path="/*Action"
            type="rallie.actions.{1}Action"
            parameter="accion"
            name="{1}Form"
            scope="request">
            <exception
                                type="utils.AppException"
                                path="/jsp/errores.jsp"/> 
            <forward name="objeto" path="/Ver{1}.do"/>
            <forward name="lista" path="/Lista{1}s.do"/>
            <forward name="bien" path="/Filtro{1}.do"/>
</action>
...  and when I call this action I obtain  No input attribute for mapping path 
/CocheAction
... but for this action all works well.
        <action
            path="/Intro*"
            scope="request"
            forward="pag{1}Page"/>

I would appreciate any help. I think my problem is common starting with 
Validator

Best Regards

________________________
Rodolfo
______________________





 
        Para:   user@struts.apache.org
        cc: 
        Asunto: The configuration of validation.xml crashes against Action 
Servlet.


Hi

I´m using struts 1.2.4 and I'm starting with validator. I have done all to 


config validator in a application I had. After set up the validator I 
obtain 
the next error
http 500 : No input attribute for mapping path /FiltroCoche 
my validation.xml is:
    <formset>
        <!-- Formulario de Coche -->
        <form name="CocheForm">
            <field
                property="marca"
                depends="required">
                    <arg0 key="cocheForm.marca"/>
            </field>
<!--            <field property="numero" 
depends="required,integer,validwhen">
                    <arg0 key="cocheForm.numero"/>
                          <var>
                          <var-name>test</var-name>
                          <var-value>(numero>0)</var-value>
                      </var>
              </field>
            <field property="piloto" depends="required">
               <arg key="cocheForm.piloto"/>
            </field>
-->        </form>
   </formset>

my struts-config contains...
...
    <form-bean       name="CocheForm"
                     type="rallie.forms.CocheForm">
    </form-bean>s0 - No input attribute for mapping path /FiltroCoche
...
        <action
            path="/Filtro*"
            scope="request"
            name="{1}Form"
            forward="filtro{1}Page"/>
....

When I comment all the fields entries in validation.xml works as before, 
but When I left one field, the servlet action doesn't work well. I would 
apprecite any help.

Thanks

________________________
Rodolfo 


Reply via email to