javaxwork

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.


Solution

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