Package org.g4studio.core.mvc.xstruts.action

Examples of org.g4studio.core.mvc.xstruts.action.ActionForward


   */
  public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {
    // Process "cancelled"
    if (isCancelled(request)) {
      ActionForward af = cancelled(mapping, form, request, response);

      if (af != null) {
        return af;
      }
    }
View Full Code Here


   * @throws Exception
   *             if the application business logic throws an exception.
   */
  protected ActionForward dispatchMethod(ActionMapping mapping, ActionForm form, HttpServletRequest request,
      HttpServletResponse response, String name, Method method) throws Exception {
    ActionForward forward = null;

    try {
      Object[] args = { mapping, form, request, response };

      forward = (ActionForward) method.invoke(actionInstance, args);
View Full Code Here

   *             if an exception occurs
   */
  public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {
    if (isCancelled(request)) {
      ActionForward af = cancelled(mapping, form, request, response);

      if (af != null) {
        return af;
      }
    }
View Full Code Here

      String userMsg = messages.getMessage("dispatch.method.user", mapping.getPath());
      throw new NoSuchMethodException(userMsg);
    }

    ActionForward forward = null;

    try {
      Object[] args = { mapping, form, request, response };

      forward = (ActionForward) method.invoke(this, args);
View Full Code Here

      log.error(message);
      throw new ServletException(message);
    }

    // Forward control to the specified module-relative URI
    return (new ActionForward(page));
  }
View Full Code Here

    if (path == null) {
      throw new ServletException(messages.getMessage("forward.path"));
    }

    // Let the controller handle the request
    ActionForward retVal = new ActionForward(path);

    return retVal;
  }
View Full Code Here

    session.setAttribute(Globals.LOCALE_KEY, locale);

    if (null == page) {
      return mapping.findForward("success");
    } else {
      return new ActionForward(page);
    }
  }
View Full Code Here

   *
   * @param name
   *            Name given to local or global forward.
   */
  public String getLink(String name) {
    ActionForward forward = getActionForward(name);

    if (forward == null) {
      return null;
    }

    StringBuffer path = new StringBuffer(this.request.getContextPath());

    path.append(forward.getPath());

    // :TODO: What about runtime parameters?
    return getEncodeURL(path.toString());
  }
View Full Code Here

    ForwardConfig[] fConfigs = orig.findForwardConfigs();
    ForwardConfig cfg;

    for (int x = 0; x < fConfigs.length; x++) {
      cfg = new ActionForward();
      cfg.setName(fConfigs[x].getName());
      cfg.setPath(convertParam(fConfigs[x].getPath(), vars));
      cfg.setRedirect(fConfigs[x].getRedirect());
      cfg.setCommand(convertParam(fConfigs[x].getCommand(), vars));
      cfg.setCatalog(convertParam(fConfigs[x].getCatalog(), vars));
View Full Code Here

   *            The <code>ModuleConfig</code> for this request
   * @param uri
   *            The module-relative URI to be the destination
   */
  protected ForwardConfig forward(ActionContext context, ModuleConfig moduleConfig, String uri) {
    return (new ActionForward(null, uri, false, moduleConfig.getPrefix()));
  }
View Full Code Here

TOP

Related Classes of org.g4studio.core.mvc.xstruts.action.ActionForward

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.