Package org.xadoop.servlet.actions.results

Examples of org.xadoop.servlet.actions.results.AbstractResult


        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();
          }
        }
      }
    }
View Full Code Here

TOP

Related Classes of org.xadoop.servlet.actions.results.AbstractResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.