I have the following snipit of html in a form:
It's dynamic so the user can add new rows...it's just prompting them for the name of a language they speak and the check box is to indicate if they write in that language as well. In the
servlet I use getParameterValues() to get the verbalLanguage and written fields. If they submit 3 different languages and the first and the third are written I get something like this:
verbalLanguage={"English","Spanish","French"}
written = {"written","written"}
I know
why I'm getting this, (it's because the checkbox fields are only submitted when they're checked) but what can I do so the values of written match up with the values of verbalLanguage? Ideally I'd get something like:
written = {"written",null,"written"}
I hope I've explained this clearly enough....any ideas?
-Jeff