struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <newton.d...@yahoo.com>
Subject Re: [s2] conditional validation
Date Tue, 20 Nov 2007 14:49:04 GMT
Create two validation XML files, one for each method.
You can differentiate between them in a couple
different ways, the easiest may be to just create two
action mappings, one for each method.

d.

--- lbastil <basti-unterwegs@gmx.de> wrote:

> 
> Is there any way with the build in declarative
> validation possibilities in
> struts 2 (annotations, xml)
> to do something like conditional validation in the
> following sense:
> 
> in the action class I have a model class, where on
> action method one i want
> to validate
> a special subset of model attributes and on action
> method two another subset
> of attributes?
> 
> (note the model in action is used "modeldriven")
> 
> Thank you for any idea,
> Basti
> -- 
> View this message in context:
>
http://www.nabble.com/-s2--conditional-validation-tf4843582.html#a13857280
> Sent from the Struts - User mailing list archive at
> Nabble.com.
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> For additional commands, e-mail:
> user-help@struts.apache.org
> 
> 


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


Mime
View raw message