if (key.equals("submit")) {
// this is the parameter representing the submit button - do nothing
} else {
// this is an existing parameter - save or remove it
if (value == null || value.length() == 0) {
blog.removeProperty(key);
} else {
blog.setProperty(key, value);
}
}
}