Package org.yaorma.web.action

Examples of org.yaorma.web.action.ActionInterface


  //

  private void processRequest(HttpServletRequest req, HttpServletResponse res)
      throws ServletException {
    String actionName = null;
    ActionInterface action = null;
    try {
      if (ServletFileUpload.isMultipartContent(req)) {
        req = new MultiPartFormRequest(req);
      }
      actionName = getActionPrefix() + req.getParameter(getActionName());
      actionName = actionName.replace("/", ".");
      action = (ActionInterface) Class.forName(actionName).newInstance();
      executeBeforeAction(req, res, action);
      action.execute(req, res);
      executeAfterAction(req, res, action);
      String nextUrl = action.getNextUrl();
      if (nextUrl != null) {
        RequestDispatcher disp = req.getRequestDispatcher(nextUrl);
        disp.forward(req, res);
      }
    } catch (Throwable thr) {
View Full Code Here

TOP

Related Classes of org.yaorma.web.action.ActionInterface

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.