Re: Inicialiazing a LookupDispachAction

2004-10-02 Thread Mark Lowe
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

Re: Inicialiazing a LookupDispachAction

2004-10-02 Thread Richard Tuquet Laburre
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

Re: Inicialiazing a LookupDispachAction

2004-10-01 Thread Michael McGrady
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

Re: Inicialiazing a LookupDispachAction

2004-10-01 Thread Wendy Smoak
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

Re: Inicialiazing a LookupDispachAction

2004-10-01 Thread Gabriel França Campolina
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)

Re: Inicialiazing a LookupDispachAction

2004-10-01 Thread Michael McGrady
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

RE: Inicialiazing a LookupDispachAction

2004-10-01 Thread Barnett, Brian W.
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