Examples of findActionConfig()


Examples of org.apache.struts.config.ModuleConfig.findActionConfig()

        } else if (forward != null) {
            selector = forward;
            object = config.findForwardConfig(forward);
        } else if (mapping != null) {
            selector = mapping;
            object = config.findActionConfig(mapping);
        }
        if (object == null) {
            JspException e = new JspException
                (messages.getMessage("struts.missing", selector));
            TagUtils.getInstance().saveException(pageContext, e);
View Full Code Here

Examples of org.apache.struts.config.ModuleConfig.findActionConfig()

  }
 
    protected ActionMapping getActionMapping(HttpServletRequest request, String path) {
        // get the related action mapping
        ModuleConfig modConfig = (ModuleConfig) request.getAttribute(Globals.MODULE_KEY);
        ActionMapping mapping = (ActionMapping) modConfig.findActionConfig(path);
        if (mapping == null)
            throw new IllegalArgumentException(
                    "Could not find mapping for  path " + path);
        return mapping;
    }
View Full Code Here

Examples of org.apache.struts.config.ModuleConfig.findActionConfig()

   
        String mappingName = RequestUtils.getActionMappingName(request.getServletPath());

        ModuleConfig moduleConfig = StrutsUtils.getModuleConfig(request);

        ActionConfig actionConfig = moduleConfig.findActionConfig( mappingName );
       
    JavascriptValidatorTag js = new JavascriptValidatorTag();
   
    js.setDynamicJavascript("true");
    js.setStaticJavascript("false");
View Full Code Here

Examples of org.apache.struts.config.ModuleConfig.findActionConfig()

       
        if ( _mapping == null && _mappingPath != null )
        {
            ModuleConfig mc = fc.getModuleConfig();
            assert mc != null : "no ModuleConfig found for " + fc.getClass().getName();
            _mapping = ( ActionMapping ) mc.findActionConfig( _mappingPath );
        }
    }

    /**
     * Tell whether this Forward is relative to a particular directory path
View Full Code Here

Examples of org.apache.struts.config.ModuleConfig.findActionConfig()

        String errorServletPath = rw.getOriginalServletPath();
        ModuleConfig globalApp = null;

        if (errorServletPath == null
             && (globalApp = InternalUtils.ensureModuleConfig(GLOBALAPP_MODULE_CONTEXT_PATH, getServletContext())) != null
             && (globalApp.findActionConfig(path) != null || getUnknownActionFromConfig(globalApp) != null))
        {
           
            if (LOG.isDebugEnabled()) {
                LOG.debug("Trying Global.app for unhandled action " + path);
            }
View Full Code Here

Examples of org.apache.struts.config.ModuleConfig.findActionConfig()

    {
        for ( int i = _stack.size() - 1; i >= 0; --i )
        {
            ModuleConfig moduleConfig = ((PushedPageFlow) _stack.elementAt(i)).getPageFlow().getModuleConfig();
           
            if (moduleConfig.findActionConfig(actionPath) != null) {
                return moduleConfig;
            }
        }
   
        return null;
View Full Code Here

Examples of org.apache.struts.config.ModuleConfig.findActionConfig()

    public void init(ServletContext servletContext)
    {
        ModuleConfig moduleConfig = InternalUtils.ensureModuleConfig(_delegateModulePath, servletContext);
        assert moduleConfig != null : "No ModuleConfig found for path " + _delegateModulePath;
        _delegate = (ActionMapping) moduleConfig.findActionConfig(getPath());

        // It's possible that an overloaded action method in the derived class has the
        // same unqualified action path, causing the path to be reset to a disambiguated
        // path that includes the form bean class type. However, in the base class module
        // config, the action path does not include the form bean class type. If the
View Full Code Here

Examples of org.apache.struts.config.ModuleConfig.findActionConfig()

        // same unqualified action path, causing the path to be reset to a disambiguated
        // path that includes the form bean class type. However, in the base class module
        // config, the action path does not include the form bean class type. If the
        // action path didn't match any in the delegate, try the unqualified path.
        if (_delegate == null) {
            _delegate = (ActionMapping) moduleConfig.findActionConfig(super.getUnqualifiedActionPath());
        }
        assert _delegate != null : "No ActionMapping with path " + getPath() + " in module " + _delegateModulePath;
    }

    /**
 
View Full Code Here

Examples of org.apache.struts.config.ModuleConfig.findActionConfig()

    {
        ModuleConfig moduleConfig = getDelegateModuleConfig(servletContext);
        assert moduleConfig != null : "No ModuleConfig found for path " + _delegateModulePath;
       
        if (_delegateActionPath != null) {
            ActionConfig actionConfig = moduleConfig.findActionConfig(_delegateActionPath);
            assert actionConfig != null : "No action config found for path " + _delegateActionPath;
            _delegate = actionConfig.findExceptionConfig(getType());
            assert _delegate != null : "No ExceptionConfig with type " + getType() + " on action " + _delegateActionPath
                                      + " in module " + _delegateModulePath;
        } else {
View Full Code Here

Examples of org.apache.struts.config.ModuleConfig.findActionConfig()

     */
    public static ActionConfig findActionConfig( String actionConfigPath, String modulePath, ServletContext context )
    {
        ModuleConfig moduleConfig = getModuleConfig( modulePath, context );
        assert moduleConfig != null;
        return moduleConfig.findActionConfig( actionConfigPath );
    }

    /**
     * Get the Struts ActionMapping path from the ActionMapping that is in the request under the key
     * Globals.MAPPING_KEY.
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.