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

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


   *             if this Class represents an abstract class, an array class, a
   *             primitive type, or void; or if instantiation fails for some
   *             other reason
   */
  public ActionForm createActionForm(ActionContext context) throws IllegalAccessException, InstantiationException {
    ActionServlet actionServlet = null;

    if (context instanceof ServletActionContext) {
      ServletActionContext saContext = (ServletActionContext) context;

      actionServlet = saContext.getActionServlet();
View Full Code Here


      }
    }

    if (action.getServlet() == null) {
      ServletActionContext saContext = (ServletActionContext) context;
      ActionServlet actionServlet = saContext.getActionServlet();

      action.setServlet(actionServlet);
    }

    return (action);
View Full Code Here

  protected String getErrorMessage(ActionContext context, ActionConfig actionConfig) {
    ServletActionContext servletActionContext = (ServletActionContext) context;

    // Retrieve internal message resources
    ActionServlet servlet = servletActionContext.getActionServlet();
    MessageResources resources = servlet.getInternal();

    return resources.getMessage("notAuthorized", actionConfig.getPath());
  }
View Full Code Here

  protected void perform(ActionContext context, ForwardConfig forwardConfig) throws Exception {
    ServletActionContext sacontext = (ServletActionContext) context;
    String uri = forwardConfig.getPath();

    if (uri == null) {
      ActionServlet servlet = sacontext.getActionServlet();
      MessageResources resources = servlet.getInternal();

      throw new IllegalArgumentException(resources.getMessage("forwardPathNull"));
    }

    HttpServletRequest request = sacontext.getRequest();
View Full Code Here

TOP

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

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.