Struts 2 : Passing array of String as static param

前端 未结 5 480
生来不讨喜
生来不讨喜 2020-12-21 07:11

I wanted to declare an action in such a way that I could pass String array of static parameter. I tried the below code:



        
5条回答
  •  一个人的身影
    2020-12-21 07:36

    The struts static param works like MAP. name been the KEY and value as VALUE. You can achieve your requirement by sending the values as comma separated and you can split it so that you can have your array there.

    name1,name2,name3
    

    For more info on Static Parameters

提交回复
热议问题