You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Pingili, Madhupal" <MP...@BBandT.com> on 2004/03/11 22:07:02 UTC

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/struts-user@jakarta.apache.org/msg95429.html

Reddy Pingili

> -----Original Message-----
> From:	Julio Cesar De Salvo [SMTP:jdesalvo@itechnology.com.ar]
> 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: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: have anybody ever managed to work the ValidatorActionForm???? i don't think so!!!!

Posted by Niall Pemberton <ni...@blueyonder.co.uk>.
You say "I've started using the ValidatorActionForm but It does not
generates the javascript code  in the jsp file".

Theres a couple of problems with this:
1) ValidatorActionForm and in fact any ActionForm has nothing to do with
generating javascript - <html:javascript> tag generates javascript.
2) Nothing is generated in the jsp file - the jsp does the generating to
output to your browser - are you saying that when you do "view source" in
your browser there is no javascript being generated for validation?

Niall

----- Original Message ----- 
From: "Julio Cesar De Salvo" <jd...@itechnology.com.ar>
To: "'Struts Users Mailing List'" <st...@jakarta.apache.org>
Sent: Friday, March 12, 2004 2:26 PM
Subject: RE: have anybody ever managed to work the ValidatorActionForm???? i
don't think so!!!!


> 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:niall.pemberton@blueyonder.co.uk]
> 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" <jd...@itechnology.com.ar>
> To: "'Struts Users Mailing List'" <st...@jakarta.apache.org>
> 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:MPingili@BBandT.com]
> > 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/struts-user@jakarta.apache.org/msg95429.html
> >
> > Reddy Pingili
> >
> > > -----Original Message-----
> > > From: Julio Cesar De Salvo [SMTP:jdesalvo@itechnology.com.ar]
> > > 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: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: have anybody ever managed to work the ValidatorActionForm???? i don't think so!!!!

Posted by Julio Cesar De Salvo <jd...@itechnology.com.ar>.
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:niall.pemberton@blueyonder.co.uk] 
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" <jd...@itechnology.com.ar>
To: "'Struts Users Mailing List'" <st...@jakarta.apache.org>
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:MPingili@BBandT.com]
> 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/struts-user@jakarta.apache.org/msg95429.html
>
> Reddy Pingili
>
> > -----Original Message-----
> > From: Julio Cesar De Salvo [SMTP:jdesalvo@itechnology.com.ar]
> > 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: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: have anybody ever managed to work the ValidatorActionForm???? i don't think so!!!!

Posted by Niall Pemberton <ni...@blueyonder.co.uk>.
What is the bug in ValidatorActionForm?

Niall

----- Original Message ----- 
From: "Julio Cesar De Salvo" <jd...@itechnology.com.ar>
To: "'Struts Users Mailing List'" <st...@jakarta.apache.org>
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:MPingili@BBandT.com]
> 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/struts-user@jakarta.apache.org/msg95429.html
>
> Reddy Pingili
>
> > -----Original Message-----
> > From: Julio Cesar De Salvo [SMTP:jdesalvo@itechnology.com.ar]
> > 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: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: have anybody ever managed to work the ValidatorActionForm???? i don't think so!!!!

Posted by Julio Cesar De Salvo <jd...@itechnology.com.ar>.
Maybe the bug in the ValidatorActionForm can be replaced using the page
number workaround?

Thanks

-----Mensaje original-----
De: Pingili, Madhupal [mailto:MPingili@BBandT.com] 
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/struts-user@jakarta.apache.org/msg95429.html

Reddy Pingili

> -----Original Message-----
> From:	Julio Cesar De Salvo [SMTP:jdesalvo@itechnology.com.ar]
> 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: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org