commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kelly Harward" <>
Subject Commons Validator w/ Struts DispatchAction
Date Tue, 15 Jul 2003 16:00:13 GMT
I have a question about using the Jakarta Commons Validator with Struts. I
am using a DispatchAction (org.apache.struts.actions.DispatchAction) to
perform basic CRUD functions, as well as several others (import, export,
etc.) using a single action class. The problem enters in when I need to
selectively validate certain dispatch methods, but not others. I'm not sure
how (or if) this can be accomplished, since setting the "validate" attribute
of the mapping to true will run things through the validator with every hit
on the action (regardless of the dispatch method that is being executed). Is
there a good solution to this without creating an additional mapping in
struts-config.xml? I've got many such dispatch actions in my application,
and having to create a validating and non-validating mapping for each would
be entirely too cumbersome.

View raw message