How to convert the ArrayList type of java to JS array in FTL template

FTL Code:

carrierDispute: {
  infoId: "${fmbInfo.infoId}",
  title: "${mbInfo.title}",
  brief: "${mbInfo.brief}",
  content: "${mbInfo.content}",
  addAttachmentList:[]  // mbInfo.addAttachmengList  ArrayList 
}

other properties can be displayed through title: "${mbInfo.title}", but how to display the addAttachmentList in it? If you write ${mbInfo.addAttachmengList} directly, you will get an error.

addAttachmentList is as follows:
clipboard.png

Apr.29,2022

you need to loop out each item with a list tag, like this:

addAttachmentList:[
<-sharplist mbInfo.addAttachmengList as attachment>
  ${attachment.fileName}, 
</-sharplist>
]
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-1e49107-4448f.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-1e49107-4448f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?