Hi,
Make sure that you are using the following code to use the JSTL c tags. The tld will be present inside the standard.jar which you have downloaded from the Jakarta Taglibs project.
To iterate a list that contains just
String objects it is well and easy. Say for instance I have an ArrayList object called names which contains the student names.
If you have a similar ArrayList with Student objects filled in, the use the following code
Please note that
Make sure that the standard.jar is in your class path.
If you have any custom objects in your ArrayList then make sure that it has got all the behaviors required. For instance, if you have got Student object inside your ArrayList make sure that the method getName() and getId() is available inside the Student object. The method name is case sensitive and even small errors like getID() instead of getId() will put the developers in the trouble and sometimes take long time to debug.
Try to involve a check before iterating the list to make sure whether the list is empty or not.
Thats it...