Re: Struts2 - Validating several fields depending on values of other fields

2008-03-14 Thread Laurie Harper
Dirk Schumacher wrote: I know it would be solveable by the @FieldExpressionValidator where its expression can be filled with a complex OGNL-Expression. But if evaluating the expression internally throws an Exception, the evaluation does not terminate right. (I'd be fine with a negative validati

Re: Struts2 - Validating several fields depending on values of other fields

2008-03-14 Thread Dave Newton
--- Dirk Schumacher wrote: > 2 fields/properties to be set on my Action: > startDate(String) > endDate(String) > > When setting a value first of all the String must be parsed into a Date > object. FYI, that can be handled automatically by the framework via type conversion [1] unless there's some

Struts2 - Validating several fields depending on values of other fields

2008-03-14 Thread Dirk Schumacher
Hello out there, I am relativley new to S2 and I got stuck on a validation problem. 2 fields/properties to be set on my Action: startDate(String) endDate(String) When setting a value first of all the String must be parsed into a Date object. I know how to handle that. The endDate must be afte