Examples of findActionConfig()


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()

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

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

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

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

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

        // Cache the corresponding ActonConfig instance
        WebContext wcontext = (WebContext) context;
        ModuleConfig moduleConfig = (ModuleConfig)
            wcontext.get(getModuleConfigKey());
        ActionConfig actionConfig = moduleConfig.findActionConfig(path);

        if (actionConfig == null) {
            // Locate the mapping for unknown paths (if any)
            ActionConfig configs[] = moduleConfig.findActionConfigs();
            for (int i = 0; i < configs.length; i++) {
View Full Code Here

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()

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

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

        // 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();
        if (beanName != null) {
            form.getAttributes().put("beanName", beanName);
        }
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()

            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.