I am passing an Arraylist in a form to a jsp, i need to get the length of that array list so that I can add element to last position of that List.
After getting a response from Flown I tried the fn:length function from JSTL library but still it doesn't seem to be working.
This is what I am trying to do exactly :
<input name = "access[${fn:length(access)+1}]" type=radio value="S" ${form.access[fn:length(access)+1] == 'S'?'checked':''}>Summary Only<br><br>
<input name = "access[${fn:length(access)+1}]" type=radio value="D" ${form.access[fn:length(access)+1] == 'D'?'checked':''}>Detail Only<br><br>
<input name = "access[${fn:length(access)+1}]" type=radio value="B" ${form.access[fn:length(access)+1] == 'B'?'checked':''}>Both<br><br>
<input name = "access[${fn:length(access)+1}]" type=radio value="N" ${form.access[fn:length(access)+1] == 'N'?'checked':''}>None<br><br>
access is an ArrayList defined as :
ArrayList<String> access = new ArrayList<String>()
I am passing this arraylist through a form to a JSP and I want to add a new element to it using JSP