I think you were doing it wrongly, in your jsp you had a script that was creating a comma delimited string which is wrong.