Hi:
Is it possible to check if an element exists within a List using the JSTL expression language?
Problem:
I have two lists, one subset of the other. The list is rendered as a table using the for-each core function. The elements which exists in both lists are to be displayed in red, while the others in white.
In Java we can do:
for(Object obj:list){
...
if(selectedList.contains(obj)){
// Display in red
}else{
// Display in white
}
...
}
How can I do this using the JSTL expression language?
Albert