But instead of having them all formatted identically, I want to bold the first one, so the output looks more like
502/340; 502/350; 502/353
How can specify that I want the bold only for the first one?
And while I'm thinking, how can I get it to put the semicolon ";" only between the values, not after each one? And of course, if there is only one entry in the list, I want it bold with no following semicolon.
The c:forEach element has a "varStatus" attribute which allows you to specify a variable which tells you about the status of the loop. One of the things it tells you is whether it's the first time through the loop. So (from memory) something like this:
I think the varStatus variable can also tell you if it's the last time through the loop, if that works better for getting the semicolons right. And if my memory wasn't perfect (it happens occasionally) then track down the documentation.
The varStatus attribute allows you to create a construct that will give you information such as the loop index et al. You can use this to determine if you are on the first iteration or not and add the appropriate CSS to bold the item when appropriate.