How to return json data selectively in a struts2 action class

前端 未结 1 1418
一个人的身影
一个人的身影 2021-01-06 00:50

I have several properties with getter and setter method in one action class.

Those properties do not perform the same task. Actually, they respond to different busin

1条回答
  •  春和景丽
    2021-01-06 01:06

    Struts2-JSON plugin allows you to exclude null properties

    
      true
    
    

    or exclude certain parameters from being serialized

    
      
        login.password,
        studentList.*\.sin
      
    
    

    See documentation for more details

    0 讨论(0)
提交回复
热议问题