String ids[] = request.getParameterValues("category");
if (ids != null) {
for (String id : ids) {
if (!id.equals("/")) {
Category category = blog.getCategory(id);
if (category != null) {
blog.removeCategory(category);
try {
// remove it from the persistent store
DAOFactory factory = DAOFactory.getConfiguredFactory();