The problem of using Carousel Graph in jsp

The

carousel graph uses bootstrap"s rotation, which uses class= "active" to determine which picture to play
, but I use the tag c:foreach in jsp to traverse

so that every item is marked as active, cannot be rotated. If you don"t write active, every item is not marked as active, at all. How to write code to make it work properly?

Mar.16,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b330d8-2be6a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b330d8-2be6a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?