Package org.apache.beehive.netui.pageflow.config

Examples of org.apache.beehive.netui.pageflow.config.PageFlowExceptionConfig


            // First, see if it should be handled by invoking a handler method.
            //
            ActionForward ret = null;
            if ( exceptionConfig instanceof PageFlowExceptionConfig )
            {
                PageFlowExceptionConfig pfExceptionConfig = ( PageFlowExceptionConfig ) exceptionConfig;
               
                if ( pfExceptionConfig.isHandlerMethod() )
                {
                    ret = invokeExceptionHandlerMethod( context, ex, pfExceptionConfig, form, actionMapping );
                }
                else
                {
View Full Code Here


            // See if the path is really relative to the webapp root, not relative to the module.  Struts doesn't by default
            // support paths that are webapp-relative.
            //
            if ( exceptionConfig instanceof PageFlowExceptionConfig )
            {
                PageFlowExceptionConfig pfec = ( PageFlowExceptionConfig ) exceptionConfig;
                if ( pfec.isPathContextRelative() ) result.setContextRelative( true );
                if ( pfec.isInheritedPath() )
                {
                    PageFlowRequestWrapper rw = PageFlowRequestWrapper.get( context.getRequest() );
                    rw.setStayInCurrentModule( true );
                }
            }
View Full Code Here

            //
            // First, see if it should be handled by invoking a handler method.
            //
            if ( exceptionConfig instanceof PageFlowExceptionConfig )
            {
                PageFlowExceptionConfig pfExceptionConfig = ( PageFlowExceptionConfig ) exceptionConfig;
               
                if ( pfExceptionConfig.isHandlerMethod() )
                {
                    return invokeExceptionHandlerMethod( context, ex, pfExceptionConfig, form, actionMapping );
                }
            }
           
View Full Code Here

        String path = ec.getPath();

        // Build the forward from the exception mapping if it exists or from the form input
        forward = path != null ? new ActionForward( path ) : mapping.getInputForward();
       
        PageFlowExceptionConfig pfec = ec instanceof PageFlowExceptionConfig ? (PageFlowExceptionConfig) ec : null;
        if (pfec != null && pfec.isPathContextRelative()) {
            forward.setContextRelative(true);
        }
       
        // Figure out the error
        if ( ex instanceof ModuleException )
        {
            error = ( ( ModuleException ) ex ).getError();
            property = ( ( ModuleException ) ex ).getProperty();
        }
        else
        {
            if ( pfec != null )
            {
                String expressionMessage = pfec.getDefaultMessage();
                if ( expressionMessage != null )
                {
                    error = new ExpressionMessage( expressionMessage, new Object[]{ ex.getMessage() } );
                }
            }
View Full Code Here

           
            // First, see if it should be handled by invoking a handler method.
            ActionForward ret = null;
            if ( exceptionConfig instanceof PageFlowExceptionConfig )
            {
                PageFlowExceptionConfig pfExceptionConfig = ( PageFlowExceptionConfig ) exceptionConfig;
               
                if ( pfExceptionConfig.isHandlerMethod() )
                {
                    ret = invokeExceptionHandlerMethod( context, ex, pfExceptionConfig, form, actionMapping );
                }
                else
                {
View Full Code Here

        String path = ec.getPath();

        // Build the forward from the exception mapping if it exists or from the form input
        forward = path != null ? new ActionForward( path ) : mapping.getInputForward();
       
        PageFlowExceptionConfig pfec = ec instanceof PageFlowExceptionConfig ? (PageFlowExceptionConfig) ec : null;
        if (pfec != null && pfec.isPathContextRelative()) {
            forward.setContextRelative(true);
        }
       
        // Figure out the error
        if ( ex instanceof ModuleException )
        {
            error = ( ( ModuleException ) ex ).getError();
            property = ( ( ModuleException ) ex ).getProperty();
        }
        else
        {
            if ( pfec != null )
            {
                String expressionMessage = pfec.getDefaultMessage();
                if ( expressionMessage != null )
                {
                    error = new ExpressionMessage( expressionMessage, new Object[]{ ex.getMessage() } );
                }
            }
View Full Code Here

           
            // First, see if it should be handled by invoking a handler method.
            ActionForward ret = null;
            if ( exceptionConfig instanceof PageFlowExceptionConfig )
            {
                PageFlowExceptionConfig pfExceptionConfig = ( PageFlowExceptionConfig ) exceptionConfig;
               
                if ( pfExceptionConfig.isHandlerMethod() )
                {
                    ret = invokeExceptionHandlerMethod( context, ex, pfExceptionConfig, form, actionMapping );
                }
                else
                {
View Full Code Here

TOP

Related Classes of org.apache.beehive.netui.pageflow.config.PageFlowExceptionConfig

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.