HashMap<String, AbstractAction> am = getActionMap(ctx);
AbstractAction action = am.get(actionStr);
if (action == null) {
msg = "Action " + actionStr + " unknown!";
} else {
AbstractResult result = action.execute(req);
// if everything was okay
// send reload (retaining get parameters)
if (result.wasSuccessful()) {
String parameters = GetRequest.reconstructParameters(req, "&");
String uri = req.getRequestURI();
ServletResponseTools.sendReload(req, resp, uri + parameters + result.getReloadSuffix());
return;
} else {
msg = result.getErrorMessage();
}
}
}
}