You can also use the parameter attribute in the validate method
(assuming you're using an actionform and decide whether to validate
there.
public ActionErrors validate(..) {
String method = mapping.getParameter();
String target = request.getParameter(method);
if(target.eq
may be you can put "validate=false" in your struts-config.xml and
execute form.validate in the methods which have to validate your form
PS : excuse me ; my english is bad ; i am french ;-)
Gabriel França Campolina a écrit :
Hi Folks,
I have a action-mapping that mapping a Action named ProdutoActi
I believe, Wendy, he is asking how LookupDispatchAction gets the name of
his button if he does not somehow assign some value to a name, such as
"method=button.delete" or "method=delete".
I gave you the answer to this, Gabriel. There is a "huge" structure
built around LookupDispatchAction whic
From: "Gabriel França Campolina" <[EMAIL PROTECTED]>
> I'd like know more about this, if I don't set a value to variable
> method, what method will call in my action???
> ex in my url:
> if I do:
> .../produto.do?method= //how call my methods to
> lookupdispachaction(method=button.delete o
Hi Folks,
I'd like know more about this, if I don't set a value to variable
method, what method will call in my action???
ex in my url:
if I do:
.../produto.do?method= //how call my methods to
lookupdispachaction(method=button.delete or method=delete)
Hi, Gabriel,
In order to cover multiple images on submits, LookupDispatchAction does
the following in order:
1 Find the mapping attirbute parameter in order to find the value of
the visual representation, e.g. "Delete It". This requires, of course
that this be the value of the name attribute
Turn off validation in struts-config by setting validate="false". Then you
call validate manually in your save method, which is typically where you
would want validation code.
-struts-config snippet-
-save method in acti
7 matches
Mail list logo