You said no scala but still it would be the easiest:
personList.map(_.id).mkString(",")
The templates are written in scala anyways, so I guess it won't do any harm to pick up some scala along the way.
If you're not happy with this solution, transform the personList
in the controller and pass down the created String
of ids.