You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Me...@hydro.qc.ca on 2003/12/15 23:12:08 UTC

RE : struts validation and dispatch action

C'est pas pire pantoute! ;-)

À mercredi!

Jean-François Ménard
Concepteur développement informatique
Applications d'affaires
Dir. Solutions informatiques
VP Centre de services partagés
* (514) 251-6666 poste 6017
* (514) 251-6404
* menard.jean-francois@hydro.qc.ca
*  5655, rue de Marseille
       Montreal, QC
       H1N1J4 - Étage RC


-----Message d'origine-----
De : Ghanakota, Vishu [mailto:GVishweshwar@firstam.com] 
Envoyé : lundi 15 décembre 2003 17:06
À : 'Struts Users Mailing List'; 'Sonam.Belbase@morganstanley.com'
Objet : RE: struts validation and dispatch action

>From what I have done before, you can sub-class the action and override the
validate to do a conditional validation, this way you still get to keep the
validation in action mapping or you can move the entire validation to your
action.

-----Original Message-----
From: Sonam Belbase [mailto:Sonam.Belbase@morganstanley.com]
Sent: Monday, December 15, 2003 1:56 PM
To: Struts Users Mailing List
Subject: struts validation and dispatch action


Hi,

I've noticed that since validation is defined in the action mapping, it
will apply to all methods of
a dispatch action. But what if only one method in the dispatch action
requires field X to
be populated/selected and another method doesn't care. Is there a way to
apply struts
validation to only one dispatch action method and not all of them?

Thanks,
SB

--
NOTICE: If received in error, please destroy and notify sender.  Sender
does not waive confidentiality or privilege, and use is prohibited.



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


"MMS <firstam.com>" made the following
 annotations on 12/15/2003 02:06:34 PM
----------------------------------------------------------------------------
--
"THIS E-MAIL MESSAGE AND ANY FILES TRANSMITTED HEREWITH, ARE INTENDED SOLELY
FOR THE USE OF THE INDIVIDUAL(S) ADDRESSED AND MAY CONTAIN CONFIDENTIAL,
PROPRIETARY OR PRIVILEGED INFORMATION.  IF YOU ARE NOT THE ADDRESSEE
INDICATED IN THIS MESSAGE (OR RESPONSIBLE FOR DELIVERY OF THIS MESSAGE TO
SUCH PERSON) YOU MAY NOT REVIEW, USE, DISCLOSE OR DISTRIBUTE THIS MESSAGE OR
ANY FILES TRANSMITTED HEREWITH.  IF YOU RECEIVE THIS MESSAGE IN ERROR,
PLEASE CONTACT THE SENDER BY REPLY E-MAIL AND DELETE THIS MESSAGE AND ALL
COPIES OF IT FROM YOUR SYSTEM."
============================================================================
==


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