Joe,
I'd like to try your duplicate action mapping suggestion, but I'm not
sure how to specify the different paths. If my dispatchAction
NotesAction.java
has two methods - SaveNotes and CreateNotes, with CreateNotes needing the
validation.
what would the action mappings look like?
I'm sorry, I may
Thanks for all the suggestions.
Joe,
I'd like to try your duplicate action mapping suggestion, but I'm not
sure how to specify the different paths. If my dispatchAction
NotesAction.java
has two methods - SaveNotes and CreateNotes, with CreateNotes needing the
validation.
what would the action mapp
ntreal, QC
H1N1J4 - Étage RC
-Message d'origine-
De : Ghanakota, Vishu [mailto:[EMAIL PROTECTED]
Envoyé : lundi 15 décembre 2003 17:06
À : 'Struts Users Mailing List'; '[EMAIL PROTECTED]'
Objet : RE: struts validation and dispatch action
>From what I h
lto:[EMAIL PROTECTED]
Sent: Monday, December 15, 2003 4:06 PM
To: 'Struts Users Mailing List'; '[EMAIL PROTECTED]'
Subject: 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 validatio
At 4:56 PM -0500 12/15/03, Sonam Belbase wrote:
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.
>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:[EMAIL
6 matches
Mail list logo