I'm going mad with this issue. I've started using the
ValidatorActionForm but It does not generates the javascript code in the
jsp file.

Many examples have been sent to this mailing list but I've tried them
all and nothing happens.
Struts seems not to understand the action name so no validation is
generated, so I need help.

This is my code if someone can help me.

Struts_config.xml
-----------------
    <action             path="/updateObjetivoCliente"
        
type="org.itechnology.actions.SaveObjetivoAction"
                                name="objetivoForm"
                                validate="true"
                                scope="request"
                                input="objetivo">
      <forward name="objetivo"
path="/objetivo.jsp"/>
      <forward name="success"
path="/getObjetivos.do"/>
    </action>

Validation.xml
--------------
                <form name="/updateObjetivoCliente">
                        <field 
                                property="descripcion"
depends="required">
                          <arg0 key="prompt.descripcion"/>
                        </field>
                        <field 
                                property="comentario"
depends="required">
                          <arg0 key="prompt.comentario"/>
                        </field>
                        <field property="recursos"
                   depends="required">
                     <arg0 key="prompt.recursos"/>
                </field>
                        <field property="fechaEntrega"
                   depends="required, date">
                     <arg0 key="prompt.fechaEntrega"/>
                                        <var>
        
<var-name>datePatternStrict</var-name>
        
<var-value>dd-MM-yyyy</var-value>
                    </var>
                        </field>
                        <field  property="idCliente"
                   depends="required">
                     <arg0 key="prompt.cliente"/>
                        </field>
                        <field property="idProyexto"
                   depends="required">
                     <arg0 key="prompt.proyecto"/>
                        </field>
                </form>

JSP FILE (objetivo.jsp)
----------------------
<html:javascript formName="/updateObjetivoCliente"
        dynamicJavascript="true"
         staticJavascript="false" method="validateObjetivoForm"/>
<script language="Javascript1.1" src="staticJavascript.jsp"></script>

and obviously the ObjetivoForm.java extend the ValidatorActionForm
class.


-----Mensaje original-----
De: Niall Pemberton [mailto:[EMAIL PROTECTED] 
Enviado el: Viernes, 12 de Marzo de 2004 11:01 a.m.
Para: Struts Users Mailing List
Asunto: Re: have anybody ever managed to work the
ValidatorActionForm???? i don't think so!!!!

What is the bug in ValidatorActionForm?

Niall

----- Original Message ----- 
From: "Julio Cesar De Salvo" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, March 12, 2004 1:48 PM
Subject: RE: have anybody ever managed to work the
ValidatorActionForm???? i
don't think so!!!!


> Maybe the bug in the ValidatorActionForm can be replaced using the
page
> number workaround?
>
> Thanks
>
> -----Mensaje original-----
> De: Pingili, Madhupal [mailto:[EMAIL PROTECTED]
> Enviado el: Jueves, 11 de Marzo de 2004 06:07 p.m.
> Para: 'Struts Users Mailing List'
> Asunto: RE: have anybody ever managed to work the
> ValidatorActionForm???? i don't think so!!!!
>
> This was discussed in another thread couple of weeks ago.
> Here is the link to that thread:
>
http://www.mail-archive.com/[EMAIL PROTECTED]/msg95429.html
>
> Reddy Pingili
>
> > -----Original Message-----
> > From: Julio Cesar De Salvo [SMTP:[EMAIL PROTECTED]
> > Sent: Thursday, March 11, 2004 4:08 PM
> > To: 'Struts Users Mailing List'
> > Subject: have anybody ever managed to work the
> > ValidatorActionForm???? i don't think so!!!!
> >
> > If so, please send the validation.xml, the jsp file and the Form
bean.
> >
> > Thanks
>
> ---------------------------------------------------------------------
> 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]


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

Reply via email to