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
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()
Size: ${list.size()}