struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From MLENEV...@abusinessware.com
Subject RE Preventing validation when form is first displayed
Date Mon, 13 Aug 2007 07:02:37 GMT
Hi,

I had the same problem, and added in my struts.xml :

<interceptor-ref name="validation">
                    <param name="excludeMethods">execute, 
input,back,cancel,browse, detail, delete, goAdd, goModif, view</param>
                </interceptor-ref>
                <interceptor-ref name="workflow">
                    <param name="excludeMethods">
execute,input,back,cancel,browse, detail, delete, goAdd, goModif, view</
param>
                </interceptor-ref>

So add the name of your first method in the excludeMethods, and the 
validation will not occures.






"Session A Mwamufiya" <smwamufi@andrew.cmu.edu> 
13/08/2007 08:58
Veuillez répondre à
"Struts Users Mailing List" <user@struts.apache.org>


A
user@struts.apache.org
cc

Objet
Preventing validation when form is first displayed






Hi, I have an action that is validateable and uses the validate method to 
ensure that an element isn't added to the database if it already exists in 
there.  Unfortunately, the validation occurs as soon as my form is 
launched.  I tried to follow the approach from the helloworld example to 
not have this happen, but it doesn't work.  I would rather avoid using 
annotations for maintainability reasons.  Would someone give me directions 
to how to stop validation from occurring when the form is launched.

Thanks,


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



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message