Thnaks Dave,
This is my case, sometimes I use the same page to input an to show the
data, and sometimes the form is empty.
I work wit your advise and the Neill too
________________________
Rodolfo Garc�a Esteban
Canal Isabel II
Divisi�n de Aplicaciones T�cnicas
C/ Santa Engracia, 125
Edificio 8
Tel. 91 545 10 00 - Ext. 2128
Fax. 91 545 14 41
_______________________
Dave Newton <[EMAIL PROTECTED]>
12/04/2005 17:15
Por favor, responda a "Struts Users Mailing List"
Para: Struts Users Mailing List <[email protected]>
cc: (cco: Rodolfo Garc�a Esteban/CYII)
Asunto: Re: The configuration of validation.xml crashes against Action
Servlet.
Niall Pemberton wrote:
>Having said that, is this really what you have in your struts-config.xml?
I would have expected to see validate="true" as well.
>
>
I (almost) never use the validate="true" attribute because I (almost)
always use the same action for creation and editing--if the
auto-validation is on it validates an empty form, which is almost never
right, so I call validation only on POSTs.
It's handled by a base Action class, so I (almost) never have to think
about it, but I _do_ have to remember to set it to false in the
struts-config to avoid confusion later.
Which leads me to a somewhat off-topic question: How do other people do
this? I haven't used validate="true" since (almost) the time I started
using Struts because of this issue.
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]