Skip to content

Instantly share code, notes, and snippets.

@topolik
Created November 7, 2012 14:43
Show Gist options
  • Save topolik/4032003 to your computer and use it in GitHub Desktop.
Save topolik/4032003 to your computer and use it in GitHub Desktop.
get values from checkboxes
List<String> values = new ArrayList<String>();
for (String param : actionRequest.getParameterMap().keySet()) {
if (param.startsWith(prefix) && !param.endsWith("--Checkbox")) {
values.add(actionRequest.getParameter(param));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment