I have an action class in which many action methods are defined and appropriate getters and setters methods are also defined. I have some action methods from which I get the
By default json result serializes all bean properties specified by the root parameter which is set by default to the action. But you can use includeProperties parameter of the result to filter only those properties from the root that matched regex expressions.
@Result(type="json", params = {"includeProperties", "^s2"})