Package org.apache.struts.config

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


        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

    {
        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

    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

        // 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

    {
        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

     */
    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

    {
        if ( _mapping == null && _mappingPath != null )
        {
            ModuleConfig mc = pfc.getModuleConfig();
            assert mc != null : "no ModuleConfig found for " + pfc.getClass().getName();
            _mapping = ( ActionMapping ) mc.findActionConfig( _mappingPath );
        }
       
        if ( _forward != null && _forward instanceof Forward )
        {
            ( ( Forward ) _forward ).reinitialize( pfc );
View Full Code Here

        // Calculate and cache the form name
        FormComponent form = (FormComponent) component;
        String action = form.getAction();
        ModuleConfig moduleConfig = form.lookupModuleConfig(context);
        ActionConfig actionConfig = moduleConfig.findActionConfig(action);
        String beanName = actionConfig.getAttribute();
        form.setAttribute("beanName", beanName);

        // Render the beginning of this form
        ResponseWriter writer = context.getResponseWriter();
View Full Code Here

            if (!linkString.startsWith("/"))
            {
                linkString = "/" + linkString;
            }

            SecureActionConfig secureConfig = (SecureActionConfig)moduleConfig.
                                              findActionConfig(linkString);

            return secureConfig;
        }
        return null;
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.