Examples of findActionConfig()


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 the path is inherited from a path in a base class.
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

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

        ModuleConfig moduleConfig = factory.createModuleConfig(PACKAGE_NAME);
        assertNotNull(moduleConfig);
       
        assertEquals("/"+PACKAGE_NAME, moduleConfig.getPrefix());
       
        ActionConfig actionConfig = moduleConfig.findActionConfig("/action1");
        assertNotNull(actionConfig);
        assertEquals("/action1", actionConfig.getPath());
       
        ActionConfig[] actionConfigs = moduleConfig.findActionConfigs();
        assertNotNull(actionConfigs);
View Full Code Here

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

    private boolean isTabRightsValid(Page tab)
    {
        boolean valid = false;
       
        ModuleConfig moduleConfig = (ModuleConfig)pageContext.getServletContext().getAttribute(Globals.MODULE_KEY);
        ActionConfig actionConfig = moduleConfig.findActionConfig(tab.getAction());
       
        if(actionConfig != null)
        {
            Right[] rights = new Right[actionConfig.getRoleNames().length];
   
View Full Code Here

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

    {
        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

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

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 );
        }
    }
}
View Full Code Here

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

        ModuleConfig moduleConfig = factory.createModuleConfig(PACKAGE_NAME);
        assertNotNull(moduleConfig);
       
        assertEquals("/"+PACKAGE_NAME, moduleConfig.getPrefix());
       
        ActionConfig actionConfig = moduleConfig.findActionConfig("/action1");
        assertNotNull(actionConfig);
        assertEquals("/action1", actionConfig.getPath());
       
        ActionConfig[] actionConfigs = moduleConfig.findActionConfigs();
        assertNotNull(actionConfigs);
View Full Code Here

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

        jsFormName = formName;
        if(jsFormName.charAt(0) == '/') {
            String mappingName = StrutsUtils.getActionMappingName(jsFormName);
            ModuleConfig mconfig = ModuleUtils.getInstance().getModuleConfig(request, app);

            ActionConfig mapping = (ActionConfig) mconfig.findActionConfig(mappingName);
            if (mapping == null) {
                throw new NullPointerException("Cannot retrieve mapping for action " + mappingName);
            }
            jsFormName = mapping.getAttribute();
        }
View Full Code Here

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

        // Look up the application module configuration information we need
        ModuleConfig moduleConfig = lookupModuleConfig(context);

        // Look up the ActionConfig we are processing
        String action = getAction();
        ActionConfig actionConfig = moduleConfig.findActionConfig(action);
        if (actionConfig == null) {
            throw new IllegalArgumentException("Cannot find action '" +
                                               action + "' configuration");
        }
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.