Can we use xwork validation framework to validate pojo in service layer

294 views Asked by At

Can we use xwork validation framework to validate pojo in service layer? It seems we have to extend ActionSupport class which is part of presentation layer to use xwork validations.

1

There are 1 answers

0
Rakesh Goyal On BEST ANSWER

ActionSupport class is pojo. It doesn't have any dependency of servlet, hence we can use xwork to validate data objects in service layer.