Package org.apache.struts.action

Examples of org.apache.struts.action.ActionServlet


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

          action.setServlet(actionServlet);
        }
      }
    }
View Full Code Here


      session.removeAttribute("treeControlTest");
    }

    if (session.getAttribute("treeControlTest") == null) {

      ActionServlet servlet = getServlet();

      // Getting init parms from web.xml

      // Get the string to be displayed as root node while rendering the tree
      String rootnodeName = servlet.getInitParameter("rootNodeName");

      String treeBuildersStr =
        "org.nextime.ion.backoffice.tree.WcmTreeBuilder";

      // Make the root node and tree control
View Full Code Here

            try {
                if (log.isDebugEnabled()) {
                    log.debug("Instantiating RequestProcessor of class " +
                              config.getControllerConfig().getProcessorClass());
                }
                ActionServlet servlet = (ActionServlet)
                context.getAttribute(Globals.ACTION_SERVLET_KEY);
                processor =
                    (RequestProcessor) RequestUtils.applicationInstance(
                        config.getControllerConfig().getProcessorClass());
                processor.init(servlet, config);
View Full Code Here

     *                                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

                     fbConfig.getType() + "'");
            }
        }

        // Configure and cache the form bean instance in the correct scope
        ActionServlet servlet = (ActionServlet)
            context.getExternalContext().getApplicationMap().get
            (Globals.ACTION_SERVLET_KEY);
        instance.setServlet(servlet);
        if ("request".equals(scope)) {
            context.getExternalContext().getRequestMap().put
View Full Code Here

                req.setAttribute(Globals.MESSAGES_KEY, new WrapperMessageResources((TextProvider)invocation.getAction()));
               
                mapping.setAttribute(modelDriven.getScopeKey());
               
                ActionForm form = (ActionForm) model;
                form.setServlet(new ActionServlet(){
                    public ServletContext getServletContext() {
                        return ServletActionContext.getServletContext();
                    }
                });
                ActionErrors errors = form.validate(mapping, req);
View Full Code Here

        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

        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

            {
                //
                // If we got here, it's possible that we're dynamically registering modules, and that the
                // module hasn't been registered yet.  Try it.
                //
                ActionServlet actionServlet = InternalUtils.getActionServlet( servletContext );
                if ( actionServlet instanceof AutoRegisterActionServlet )
                {
                    try
                    {
                        AutoRegisterActionServlet servlet = ( AutoRegisterActionServlet ) actionServlet;
View Full Code Here

TOP

Related Classes of org.apache.struts.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.