OK, that's what I wanted to make sure of. So, yes, the checkbox approach would work.
You can google around for how to make checkboxes look like blocks instead of their usual appearance (or use a CSS framework that has this built in -- Bootstrap may).
If you want/need to do it by hand, you'd pass the values in the query
string as params with all the
same name. That causes the servlet container to group them as an array for passing to your servlet.