Can we use xwork validation framework to validate pojo in service layer
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.
ActionSupport class is pojo. It doesn't have any dependency of servlet, hence we can use xwork to validate data objects in service layer.
精彩评论