if (actionStr != null) {
boolean isLoginAction = actionStr.equals(LoginAction.ACTIONNAME);
if (isLoggedIn || isLoginAction) {
ServletContext ctx = req.getSession().getServletContext();
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, "&");