how to remove last comma from string in jsp?
843838Apr 13 2007 — edited Apr 13 2007I have a string as
district = "11,12,13,14,15,16,17,"
In this string, i need to omit the last comma to save in database and my string should show in the following format
district = "11,12,13,14,15,16,17"
I am not sure, how to do that. I hope u understood the problem.
Can anyone help me out?