How to get array list size in java jsp?

后端 未结 4 785
一向
一向 2020-12-17 08:31

I have a form that ask for user to enter ID. This form is send to a servlet which checks database to see if user exist. If the user exists then it sends me back their ordere

4条回答
  •  误落风尘
    2020-12-17 09:09

    Newer versions of EL accept using the methods defined in the class of the object in EL expressions, so you can simply call the size() method:

    Size: ${list.size()}
    

提交回复
热议问题