You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beehive.apache.org by ri...@apache.org on 2005/06/30 00:19:04 UTC

svn commit: r202448 [1/2] - in /incubator/beehive/trunk/netui: src/compiler-core/org/apache/beehive/netui/compiler/ src/compiler-core/org/apache/beehive/netui/compiler/genmodel/ src/compiler-core/org/apache/beehive/netui/compiler/model/ src/compiler-co...

Author: rich
Date: Wed Jun 29 15:18:59 2005
New Revision: 202448

URL: http://svn.apache.org/viewcvs?rev=202448&view=rev
Log:
Resolution for http://issues.apache.org/jira/browse/BEEHIVE-400 : Nice to have a way to inheriate all its JSPs members when inheriating a pageflow

This follows a thread on beehive-dev.  The basic idea is that you have a base page flow A and derived page flow B, and B sets inheritLocalPaths=true in its @Jpf.Controller.  If you go through any @Jpf.Forward or @Jpf.SimpleAction that's comes from A, and if the referenced path is local (doesn't start with '/'), then the path will be relative to A.  *The page is still run in the context of B -- B is not destroyed, and a separate instance of A is not created.*

There is a full test of this at netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths, but here's an example:

    /base/BaseController.jpf:
    ---
    @Jpf.Controller(
       simpleActions={
           @Jpf.SimpleAction(name="simple1", path="base_simple1.jsp"),
           @Jpf.SimpleAction(name="simple2", path="base_simple2.jsp")
       }
    )
    public class BaseController
    {
       @Jpf.Action(
           forwards={
               @Jpf.Forward(name="complex1", path="base_complex1.jsp")
           }
       )
       public Forward complex1()
       {
           ...
       }

       @Jpf.Action(
           forwards={
               @Jpf.Forward(name="complex2", path="base_complex2.jsp")
           }
       )
       public Forward complex2()
       {
           ...
       }
    }

    /derived/DerivedController.jpf:
    ---
    @Jpf.Controller(
       simpleActions={
           @Jpf.SimpleAction(name="simple2", path="derived_simple2.jsp")
       },
       inheritLocalPaths=true
    )
    public class BaseController
    {
       @Jpf.Action(
           forwards={
               @Jpf.Forward(name="complex2", path="derived_complex2.jsp")
           }
       )
       public Forward complex2()
       {
           ...
       }
    }

    Here's a table of actions/destinations (all actions being raised in the context of /derived):

       simple1       /base/base_simple1.jsp
       complex1      /base/base_complex1.jsp
       simple2       /derived/derived_simple2.jsp
       complex2      /derived/derived_complex2.jsp 

tests: bvt in netui (WinXP)
BB: self (linux)


Added:
    incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/typesystem/TypesystemElement.java   (with props)
    incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/
    incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/Controller.jpf   (with props)
    incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/base/
    incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/base/Controller.jpf   (with props)
    incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/base/page1.jsp   (with props)
    incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/base/page2.jsp   (with props)
    incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/base/page3.jsp   (with props)
    incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/base/page4.jsp   (with props)
    incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/base/page5.jsp   (with props)
    incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/base/page6.jsp   (with props)
    incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/derived/
    incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/derived/Controller.jpf   (with props)
    incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/derivedNoInheritLocalPaths/
    incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/derivedNoInheritLocalPaths/Controller.jpf   (with props)
    incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/derivedNoInheritLocalPaths/page1.jsp   (with props)
    incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/derivedNoInheritLocalPaths/page2.jsp   (with props)
    incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/derivedNoInheritLocalPaths/page3.jsp   (with props)
    incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/derivedNoInheritLocalPaths/page4.jsp   (with props)
    incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/derivedNoInheritLocalPaths/page5.jsp   (with props)
    incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/derivedNoInheritLocalPaths/page6.jsp   (with props)
    incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/index.jsp   (with props)
    incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/InheritLocalPaths.xml   (with props)
Modified:
    incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/CompilerUtils.java
    incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/FlowControllerChecker.java
    incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/JpfLanguageConstants.java
    incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/MergedControllerAnnotation.java
    incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/diagnostics.properties
    incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/genmodel/GenExceptionModel.java
    incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/genmodel/GenForwardModel.java
    incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/model/ExceptionModel.java
    incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/model/ForwardModel.java
    incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/typesystem/declaration/AnnotationInstance.java
    incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/typesystem/declaration/Declaration.java
    incubator/beehive/trunk/netui/src/compiler-xdoclet/org/apache/beehive/netui/compiler/xdoclet/typesystem/impl/declaration/AnnotationInstanceImpl.java
    incubator/beehive/trunk/netui/src/compiler/org/apache/beehive/netui/compiler/typesystem/impl/WrapperFactory.java
    incubator/beehive/trunk/netui/src/compiler/org/apache/beehive/netui/compiler/typesystem/impl/declaration/AnnotationInstanceImpl.java
    incubator/beehive/trunk/netui/src/compiler/org/apache/beehive/netui/compiler/typesystem/impl/declaration/AnnotationTypeElementDeclarationImpl.java
    incubator/beehive/trunk/netui/src/compiler/org/apache/beehive/netui/compiler/typesystem/impl/declaration/AnnotationValueImpl.java
    incubator/beehive/trunk/netui/src/compiler/org/apache/beehive/netui/compiler/typesystem/impl/declaration/DeclarationImpl.java
    incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/Forward.java
    incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/PageFlowPageFilter.java
    incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/PageFlowRequestProcessor.java
    incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/PageFlowUtils.java
    incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/ServletContainerAdapter.java
    incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/annotations/Jpf.java
    incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/config/PageFlowActionForward.java
    incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/config/PageFlowExceptionConfig.java
    incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/internal/DefaultActionForwardHandler.java
    incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/internal/DefaultExceptionsHandler.java
    incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/internal/PageFlowRequestWrapper.java
    incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/NonNormalizedPath.xml

Modified: incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/CompilerUtils.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/CompilerUtils.java?rev=202448&r1=202447&r2=202448&view=diff
==============================================================================
--- incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/CompilerUtils.java (original)
+++ incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/CompilerUtils.java Wed Jun 29 15:18:59 2005
@@ -1206,13 +1206,22 @@
         //
         if ( ! retVal.exists() )
         {
-            String jpfParentRelativePath = "";
             PackageDeclaration jpfPackage = outerClass.getPackage();
-            if ( jpfPackage != null ) jpfParentRelativePath = jpfPackage.getQualifiedName().replace( '.', '/' );
-            return getWebappRelativeFile( '/' + jpfParentRelativePath + '/' + relativePath, true, env );
+            return getWebappRelativeFile( getPathRelativeToPackage( relativePath, jpfPackage ), true, env );
         }
             
         return retVal;
+    }
+    
+    public static String getPathRelativeToPackage( String relativePath, PackageDeclaration packageDecl )
+    {
+        if ( packageDecl != null )
+        {
+            String packageName = packageDecl.getQualifiedName();
+            if ( packageName.length() > 0 ) return '/' + packageName.replace( '.', '/' ) + '/' + relativePath;
+        }
+        
+        return '/' + relativePath;
     }
     
     public static File getWebappRelativeFile( String webappRelativePath, boolean lookInSourceRoots,

Modified: incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/FlowControllerChecker.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/FlowControllerChecker.java?rev=202448&r1=202447&r2=202448&view=diff
==============================================================================
--- incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/FlowControllerChecker.java (original)
+++ incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/FlowControllerChecker.java Wed Jun 29 15:18:59 2005
@@ -336,8 +336,13 @@
         
         //
         // Check relative paths on Jpf.Catch, Jpf.Forward, and Jpf.SimpleAction annotations on superclasses.
+        // If inheritLocalPaths is set to true on @Jpf.Controller, then we don't need to do this check, since
+        // inherited paths will always resolve.
         //
-        checkInheritedRelativePaths( jclass );
+        if ( ! getFCSourceFileInfo().getMergedControllerAnnotation().isInheritLocalPaths() )
+        {
+            checkInheritedRelativePaths( jclass );
+        }
     }
     
     /**

Modified: incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/JpfLanguageConstants.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/JpfLanguageConstants.java?rev=202448&r1=202447&r2=202448&view=diff
==============================================================================
--- incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/JpfLanguageConstants.java (original)
+++ incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/JpfLanguageConstants.java Wed Jun 29 15:18:59 2005
@@ -137,6 +137,7 @@
     public static final String USE_FORM_BEAN_ATTR = "useFormBean";
     public static final String USE_FORM_BEAN_TYPE_ATTR = "useFormBeanType";
     public static final String READONLY_ATTR = "readOnly";
+    public static final String INHERIT_LOCAL_PATHS_ATTR = "inheritLocalPaths";
     public static final String RESTORE_QUERY_STRING_ATTR = "restoreQueryString";
     public static final String VALUE_ATTR = "value";
     public static final String MESSAGE_BUNDLES_ATTR = "messageBundles";

Modified: incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/MergedControllerAnnotation.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/MergedControllerAnnotation.java?rev=202448&r1=202447&r2=202448&view=diff
==============================================================================
--- incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/MergedControllerAnnotation.java (original)
+++ incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/MergedControllerAnnotation.java Wed Jun 29 15:18:59 2005
@@ -34,12 +34,13 @@
     private String _validatorVersion;
     private String _validatorMerge;
     private List _tilesDefsConfigs;
-    private boolean _nested;
-    private boolean _longLived;
+    private boolean _nested = false;
+    private boolean _longLived = false;
     private List _rolesAllowed;
     private List _customValidatorConfigs;
     private Boolean _loginRequired = null;
-    private boolean _readOnly;
+    private boolean _readOnly = false;
+    private boolean _inheritLocalPaths = false;
     private LinkedHashMap _forwards = new LinkedHashMap();
     private LinkedHashMap _sharedFlowRefs = new LinkedHashMap();
     private LinkedHashMap _catches = new LinkedHashMap();
@@ -77,6 +78,9 @@
         Boolean readOnly = CompilerUtils.getBoolean( controllerAnnotation, READONLY_ATTR, true );
         if ( readOnly != null ) _readOnly = readOnly.booleanValue();
         
+        Boolean inheritLocalPaths = CompilerUtils.getBoolean( controllerAnnotation, INHERIT_LOCAL_PATHS_ATTR, true );
+        if ( inheritLocalPaths != null ) _inheritLocalPaths = inheritLocalPaths.booleanValue();
+        
         _rolesAllowed = mergeStringArray( _rolesAllowed, controllerAnnotation, ROLES_ALLOWED_ATTR );
         _customValidatorConfigs =
                 mergeStringArray( _customValidatorConfigs, controllerAnnotation, CUSTOM_VALIDATOR_CONFIGS_ATTR );
@@ -170,6 +174,11 @@
     public boolean isReadOnly()
     {
         return _readOnly;
+    }
+
+    public boolean isInheritLocalPaths()
+    {
+        return _inheritLocalPaths;
     }
 
     public Collection getForwards()

Modified: incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/diagnostics.properties
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/diagnostics.properties?rev=202448&r1=202447&r2=202448&view=diff
==============================================================================
--- incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/diagnostics.properties (original)
+++ incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/diagnostics.properties Wed Jun 29 15:18:59 2005
@@ -181,10 +181,12 @@
 warning.annotated-abstract-method = This annotation will have no effect on an abstract method.
 
 message.inherited-file-not-found = \
-File "{0}" (reference inherited from a {1} annotation on {2}) could not be found in the web application.
+File "{0}" (reference inherited from a {1} annotation on {2}) could not be found.  To inherit local paths \
+automatically, set inheritLocalPaths to true on @Jpf.Controller.
 
 message.method-inherited-file-not-found = \
-File "{0}" (reference inherited from a {1} annotation on method {2} in {3}) could not be found in the web application.
+File "{0}" (reference inherited from a {1} annotation on method {2} in {3}) could not be found.  To inherit local \
+paths automatically, set inheritLocalPaths to true on @Jpf.Controller.
 
 error.absolute-path-required-for-tiles-def = \
 An absolute path from the webapp root is required for a tiles definitions configuration file.

Modified: incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/genmodel/GenExceptionModel.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/genmodel/GenExceptionModel.java?rev=202448&r1=202447&r2=202448&view=diff
==============================================================================
--- incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/genmodel/GenExceptionModel.java (original)
+++ incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/genmodel/GenExceptionModel.java Wed Jun 29 15:18:59 2005
@@ -25,6 +25,7 @@
 import org.apache.beehive.netui.compiler.typesystem.declaration.AnnotationInstance;
 import org.apache.beehive.netui.compiler.typesystem.declaration.MethodDeclaration;
 import org.apache.beehive.netui.compiler.typesystem.declaration.ClassDeclaration;
+import org.apache.beehive.netui.compiler.typesystem.declaration.TypeDeclaration;
 
 import java.util.List;
 import java.util.Collection;
@@ -41,19 +42,18 @@
         super( parentApp );
         
         setType( CompilerUtils.getLoadableName( CompilerUtils.getDeclaredType( annotation, TYPE_ATTR, true ) ) );
-        setPath( CompilerUtils.getString( annotation, PATH_ATTR, true ) );
         setMessage( CompilerUtils.getString( annotation, MESSAGE_ATTR, true ) );
         setMessageKey( CompilerUtils.getString( annotation, MESSAGE_KEY_ATTR, true ) );
+        String path = CompilerUtils.getString( annotation, PATH_ATTR, true );
         String methodName = CompilerUtils.getString( annotation, METHOD_ATTR, true );
-        setHandlerMethod( methodName );
         
-            
         //
         // Now get the forwards (@Jpf.Forward) from the handler method, and add them as global or local
         // forwards, as appropriate.
         //
         if ( methodName != null )
         {
+            setHandlerMethod( methodName );
             MethodDeclaration method = CompilerUtils.getClassMethod( jclass, methodName, EXCEPTION_HANDLER_TAG_NAME );
             AnnotationInstance exHandlerAnnotation = CompilerUtils.getAnnotation( method, EXCEPTION_HANDLER_TAG_NAME );
             GenForwardModel.addForwards( exHandlerAnnotation, forwardContainer, jclass, parentApp,
@@ -68,6 +68,26 @@
                 readOnly = Boolean.valueOf( parentApp.getFlowControllerInfo().getMergedControllerAnnotation().isReadOnly() );
             }
             setReadonly( readOnly.booleanValue() );
+        }
+        else
+        {
+            assert path != null;
+            
+            //
+            // If this annotation came from a base class, and if inheritLocalPaths is true on the Controller
+            // annotation, then make the path relative to the base class module.
+            //
+            TypeDeclaration containingType = annotation.getContainingType();
+            if ( ! CompilerUtils.typesAreEqual( jclass, containingType ) 
+                 && parentApp.getFlowControllerInfo().getMergedControllerAnnotation().isInheritLocalPaths() )
+            {
+                // TODO: when we no longer support Struts 1.1, we can simply use the 'module' property
+                // to make this forward relative to the base class module.
+                path = CompilerUtils.getPathRelativeToPackage( path, containingType.getPackage() );
+                setInheritedPath( true );
+            }
+            
+            setPath( path );
         }
     }
     

Modified: incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/genmodel/GenForwardModel.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/genmodel/GenForwardModel.java?rev=202448&r1=202447&r2=202448&view=diff
==============================================================================
--- incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/genmodel/GenForwardModel.java (original)
+++ incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/genmodel/GenForwardModel.java Wed Jun 29 15:18:59 2005
@@ -24,6 +24,7 @@
 import org.apache.beehive.netui.compiler.typesystem.declaration.AnnotationInstance;
 import org.apache.beehive.netui.compiler.typesystem.declaration.ClassDeclaration;
 import org.apache.beehive.netui.compiler.typesystem.declaration.FieldDeclaration;
+import org.apache.beehive.netui.compiler.typesystem.declaration.TypeDeclaration;
 import org.apache.beehive.netui.compiler.typesystem.type.DeclaredType;
 
 import java.util.List;
@@ -124,12 +125,28 @@
             boolean contextRelative = true;
             if ( ! path.startsWith( "/" ) )
             {
-                contextRelative = false;
-                
                 //
-                // If it's an absolute URL, then the path shouldn't have a slash inserted in front of it.
+                // If this annotation came from a base class, and if inheritLocalPaths is true on the Controller
+                // annotation, then make the path relative to the base class module.
                 //
-                if ( ! CompilerUtils.isAbsoluteURL( path ) ) path = '/' + path;
+                TypeDeclaration containingType = annotation.getContainingType();
+                if ( ! CompilerUtils.typesAreEqual( jclass, containingType ) 
+                     && parent.getFlowControllerInfo().getMergedControllerAnnotation().isInheritLocalPaths() )
+                {
+                    // TODO: when we no longer support Struts 1.1, we can simply use the 'module' property
+                    // to make this forward relative to the base class module.
+                    path = CompilerUtils.getPathRelativeToPackage( path, containingType.getPackage() );
+                    setInheritedPath( true );
+                }
+                else
+                {
+                    contextRelative = false;
+                    
+                    //
+                    // If it's an absolute URL, then the path shouldn't have a slash inserted in front of it.
+                    //
+                    if ( ! CompilerUtils.isAbsoluteURL( path ) ) path = '/' + path;
+                }
             }
             
             setPath( path );

Modified: incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/model/ExceptionModel.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/model/ExceptionModel.java?rev=202448&r1=202447&r2=202448&view=diff
==============================================================================
--- incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/model/ExceptionModel.java (original)
+++ incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/model/ExceptionModel.java Wed Jun 29 15:18:59 2005
@@ -33,6 +33,7 @@
     private String _messageKey;
     private String _handlerClass;
     private boolean _readonly = false;
+    private boolean _inheritedPath = false;
 
     private static final String JPF_EXCEPTION_CONFIG_CLASSNAME = PAGEFLOW_PACKAGE + ".config.PageFlowExceptionConfig";
     
@@ -134,6 +135,8 @@
             }
         }
         
+        if ( _inheritedPath ) addSetProperty( xb, "inheritedPath", "true" );
+        
         if ( xb.getKey() == null && _messageKey != null ) xb.setKey( _messageKey );
         
         //
@@ -172,5 +175,15 @@
     public void setReadonly( boolean readonly )
     {
         _readonly = readonly;
+    }
+
+    public boolean isInheritedPath()
+    {
+        return _inheritedPath;
+    }
+
+    public void setInheritedPath( boolean inheritedPath )
+    {
+        _inheritedPath = inheritedPath;
     }
 }

Modified: incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/model/ForwardModel.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/model/ForwardModel.java?rev=202448&r1=202447&r2=202448&view=diff
==============================================================================
--- incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/model/ForwardModel.java (original)
+++ incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/model/ForwardModel.java Wed Jun 29 15:18:59 2005
@@ -46,6 +46,7 @@
     private boolean _hasExplicitRedirectValue = false;
     private List _actionOutputs = null;
     private boolean _restoreQueryString = false;
+    private boolean _inheritedPath = false;
     
 
     protected ForwardModel( StrutsApp parent )
@@ -66,20 +67,19 @@
 
         xb.setName( _name );
         
-        if ( xb.getPath() == null )
-        {
-            xb.setPath( _path == null ? "" : _path );
-        }
+        if ( xb.getPath() == null ) xb.setPath( _path == null ? "" : _path );
         
         if ( xb.getContextRelative() == null && _contextRelative )
         {
             xb.setContextRelative( Forward.ContextRelative.TRUE );
         }
         
-        if ( xb.getRedirect() == null && _redirect )
-        {
-            xb.setRedirect( Forward.Redirect.TRUE );
-        }
+        if ( xb.getRedirect() == null && _redirect ) xb.setRedirect( Forward.Redirect.TRUE );
+        
+        //
+        // TODO: comment
+        //
+        if ( _inheritedPath ) addSetProperty( xb, "inheritedPath", "true" );
         
         //
         // "externalRedirect" is set using set-property, to indicate that the redirect
@@ -255,12 +255,12 @@
 
     public boolean forwardsToAction()
     {
-        return _path.endsWith( ".do" );  // NOI18N
+        return _path.endsWith( ACTION_EXTENSION_DOT );  // NOI18N
     }
 
     public final boolean forwardsToPageFlow()
     {
-        return _path.endsWith( ".jpf" );  // NOI18N
+        return _path.endsWith( JPF_FILE_EXTENSION_DOT );  // NOI18N
     }
 
     public String getPageName()
@@ -275,7 +275,7 @@
     {
         assert forwardsToAction() : "getActionName() called for non-action" + _path;  // NOI18N
 
-        int index = _path.indexOf( ".do" );  // NOI18N
+        int index = _path.indexOf( ACTION_EXTENSION_DOT );  // NOI18N
         assert index != -1;
         return _path.substring( 0, index );
     }
@@ -297,5 +297,15 @@
         prop.setProperty( propertyName );
         prop.setValue( propertyValue );
         if ( xb.getClassName() == null ) xb.setClassName( JPF_ACTION_FWD_CLASSNAME );
+    }
+
+    public boolean isInheritedPath()
+    {
+        return _inheritedPath;
+    }
+
+    public void setInheritedPath( boolean inheritedPath )
+    {
+        _inheritedPath = inheritedPath;
     }
 }

Added: incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/typesystem/TypesystemElement.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/typesystem/TypesystemElement.java?rev=202448&view=auto
==============================================================================
--- incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/typesystem/TypesystemElement.java (added)
+++ incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/typesystem/TypesystemElement.java Wed Jun 29 15:18:59 2005
@@ -0,0 +1,22 @@
+/*
+ * Copyright 2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * $Header:$
+ */
+package org.apache.beehive.netui.compiler.typesystem;
+
+public interface TypesystemElement
+{
+}

Propchange: incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/typesystem/TypesystemElement.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/typesystem/declaration/AnnotationInstance.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/typesystem/declaration/AnnotationInstance.java?rev=202448&r1=202447&r2=202448&view=diff
==============================================================================
--- incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/typesystem/declaration/AnnotationInstance.java (original)
+++ incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/typesystem/declaration/AnnotationInstance.java Wed Jun 29 15:18:59 2005
@@ -19,10 +19,12 @@
 
 import org.apache.beehive.netui.compiler.typesystem.type.AnnotationType;
 import org.apache.beehive.netui.compiler.typesystem.util.SourcePosition;
+import org.apache.beehive.netui.compiler.typesystem.TypesystemElement;
 
 import java.util.Map;
 
 public interface AnnotationInstance
+        extends TypesystemElement
 {
     AnnotationType getAnnotationType();
     
@@ -30,4 +32,6 @@
     
     // Map<AnnotationTypeElementDeclaration, AnnotationValue> getElementValues();
     Map getElementValues();
+    
+    TypeDeclaration getContainingType();
 }

Modified: incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/typesystem/declaration/Declaration.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/typesystem/declaration/Declaration.java?rev=202448&r1=202447&r2=202448&view=diff
==============================================================================
--- incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/typesystem/declaration/Declaration.java (original)
+++ incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/typesystem/declaration/Declaration.java Wed Jun 29 15:18:59 2005
@@ -18,10 +18,12 @@
 package org.apache.beehive.netui.compiler.typesystem.declaration;
 
 import org.apache.beehive.netui.compiler.typesystem.util.SourcePosition;
+import org.apache.beehive.netui.compiler.typesystem.TypesystemElement;
 
 import java.util.Set;
 
 public interface Declaration
+        extends TypesystemElement
 {
     boolean equals( Object o );
 

Modified: incubator/beehive/trunk/netui/src/compiler-xdoclet/org/apache/beehive/netui/compiler/xdoclet/typesystem/impl/declaration/AnnotationInstanceImpl.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/compiler-xdoclet/org/apache/beehive/netui/compiler/xdoclet/typesystem/impl/declaration/AnnotationInstanceImpl.java?rev=202448&r1=202447&r2=202448&view=diff
==============================================================================
--- incubator/beehive/trunk/netui/src/compiler-xdoclet/org/apache/beehive/netui/compiler/xdoclet/typesystem/impl/declaration/AnnotationInstanceImpl.java (original)
+++ incubator/beehive/trunk/netui/src/compiler-xdoclet/org/apache/beehive/netui/compiler/xdoclet/typesystem/impl/declaration/AnnotationInstanceImpl.java Wed Jun 29 15:18:59 2005
@@ -19,13 +19,18 @@
 
 import org.apache.beehive.netui.compiler.typesystem.declaration.AnnotationInstance;
 import org.apache.beehive.netui.compiler.typesystem.declaration.AnnotationTypeElementDeclaration;
+import org.apache.beehive.netui.compiler.typesystem.declaration.TypeDeclaration;
+import org.apache.beehive.netui.compiler.typesystem.declaration.MemberDeclaration;
 import org.apache.beehive.netui.compiler.typesystem.type.AnnotationType;
 import org.apache.beehive.netui.compiler.typesystem.util.SourcePosition;
 import org.apache.beehive.netui.compiler.xdoclet.typesystem.impl.DelegatingImpl;
+import org.apache.beehive.netui.compiler.xdoclet.typesystem.impl.WrapperFactory;
 import org.apache.beehive.netui.compiler.xdoclet.typesystem.impl.env.SourcePositionImpl;
+import org.apache.beehive.netui.compiler.CompilerUtils;
 import org.apache.beehive.netui.xdoclet.XDocletCompilerUtils;
 import xjavadoc.XProgramElement;
 import xjavadoc.XTag;
+import xjavadoc.XMember;
 
 import java.util.ArrayList;
 import java.util.HashMap;
@@ -36,9 +41,9 @@
         extends DelegatingImpl
         implements AnnotationInstance
 {
-    
     private AnnotationType _type;
     private SourcePosition _sourcePosition;
+    private XProgramElement _containingElement;
     
     // Map<AnnotationTypeElementDeclaration, AnnotationValue> getElementValues();
     private HashMap _elementValues;
@@ -49,6 +54,8 @@
         _sourcePosition = SourcePositionImpl.get( tag, element );
         _type = type;
         _elementValues = elementValues;
+        assert element != null;
+        _containingElement = element;
     }
     
     public AnnotationType getAnnotationType()
@@ -118,5 +125,12 @@
     public XTag getDelegateXTag()
     {
         return ( XTag ) super.getDelegate();
+    }
+
+    public TypeDeclaration getContainingType()
+    {
+        assert _containingElement instanceof XMember : _containingElement.getClass().getName();
+        MemberDeclaration member = WrapperFactory.get().getMemberDeclaration( ( XMember ) _containingElement );
+        return CompilerUtils.getOuterClass( member );
     }
 }

Modified: incubator/beehive/trunk/netui/src/compiler/org/apache/beehive/netui/compiler/typesystem/impl/WrapperFactory.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/compiler/org/apache/beehive/netui/compiler/typesystem/impl/WrapperFactory.java?rev=202448&r1=202447&r2=202448&view=diff
==============================================================================
--- incubator/beehive/trunk/netui/src/compiler/org/apache/beehive/netui/compiler/typesystem/impl/WrapperFactory.java (original)
+++ incubator/beehive/trunk/netui/src/compiler/org/apache/beehive/netui/compiler/typesystem/impl/WrapperFactory.java Wed Jun 29 15:18:59 2005
@@ -36,6 +36,7 @@
 import org.apache.beehive.netui.compiler.typesystem.type.TypeInstance;
 import org.apache.beehive.netui.compiler.typesystem.type.TypeVariable;
 import org.apache.beehive.netui.compiler.typesystem.type.VoidType;
+import org.apache.beehive.netui.compiler.typesystem.TypesystemElement;
 
 import java.util.ArrayList;
 import java.util.List;
@@ -162,22 +163,21 @@
     public AnnotationType getAnnotationType( com.sun.mirror.type.AnnotationType delegate )
     {
         if ( delegate == null ) return null;
-        
         return new AnnotationTypeImpl( delegate );
     }
     
-    public AnnotationInstance getAnnotationInstance( com.sun.mirror.declaration.AnnotationMirror delegate )
+    public AnnotationInstance getAnnotationInstance( com.sun.mirror.declaration.AnnotationMirror delegate,
+                                                     TypesystemElement containingElement )
     {
         if ( delegate == null ) return null;
-        
-        return new AnnotationInstanceImpl( delegate );
+        return new AnnotationInstanceImpl( delegate, containingElement );
     }
     
-    public AnnotationValue getAnnotationValue( com.sun.mirror.declaration.AnnotationValue delegate )
+    public AnnotationValue getAnnotationValue( com.sun.mirror.declaration.AnnotationValue delegate,
+                                               AnnotationInstance containingAnnotation )
     {
         if ( delegate == null ) return null;
-        
-        return new AnnotationValueImpl( delegate );
+        return new AnnotationValueImpl( delegate, containingAnnotation );
     }
     
     public Declaration getDeclaration( com.sun.mirror.declaration.Declaration delegate )
@@ -326,7 +326,7 @@
         return new TypeParameterDeclarationImpl( delegate );
     }
     
-    public Object getWrapper( Object o )
+    public Object getWrapper( Object o, TypesystemElement containingElement )
     {
         if ( o == null ) return null;
         
@@ -340,11 +340,15 @@
         }
         else if ( o instanceof com.sun.mirror.declaration.AnnotationMirror )
         {
-            return getAnnotationInstance( ( com.sun.mirror.declaration.AnnotationMirror ) o );
+            assert containingElement != null;
+            return getAnnotationInstance( ( com.sun.mirror.declaration.AnnotationMirror ) o, containingElement );
         }
         else if ( o instanceof com.sun.mirror.declaration.AnnotationValue )
         {
-            return getAnnotationValue( ( com.sun.mirror.declaration.AnnotationValue ) o );
+            assert containingElement != null;
+            assert containingElement instanceof AnnotationInstance : containingElement.getClass().getName();
+            AnnotationInstance containingAnnotation = ( AnnotationInstance ) containingElement;
+            return getAnnotationValue( ( com.sun.mirror.declaration.AnnotationValue ) o, containingAnnotation );
         }
         else if ( o instanceof com.sun.mirror.declaration.PackageDeclaration )
         {
@@ -357,7 +361,7 @@
             
             for ( Object i : list )
             {
-                ret.add( getWrapper( i ) );
+                ret.add( getWrapper( i, containingElement ) );
             }
             
             return ret;

Modified: incubator/beehive/trunk/netui/src/compiler/org/apache/beehive/netui/compiler/typesystem/impl/declaration/AnnotationInstanceImpl.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/compiler/org/apache/beehive/netui/compiler/typesystem/impl/declaration/AnnotationInstanceImpl.java?rev=202448&r1=202447&r2=202448&view=diff
==============================================================================
--- incubator/beehive/trunk/netui/src/compiler/org/apache/beehive/netui/compiler/typesystem/impl/declaration/AnnotationInstanceImpl.java (original)
+++ incubator/beehive/trunk/netui/src/compiler/org/apache/beehive/netui/compiler/typesystem/impl/declaration/AnnotationInstanceImpl.java Wed Jun 29 15:18:59 2005
@@ -20,11 +20,16 @@
 import org.apache.beehive.netui.compiler.typesystem.declaration.AnnotationInstance;
 import org.apache.beehive.netui.compiler.typesystem.declaration.AnnotationTypeElementDeclaration;
 import org.apache.beehive.netui.compiler.typesystem.declaration.AnnotationValue;
+import org.apache.beehive.netui.compiler.typesystem.declaration.TypeDeclaration;
+import org.apache.beehive.netui.compiler.typesystem.declaration.Declaration;
+import org.apache.beehive.netui.compiler.typesystem.declaration.MemberDeclaration;
 import org.apache.beehive.netui.compiler.typesystem.impl.DelegatingImpl;
 import org.apache.beehive.netui.compiler.typesystem.impl.WrapperFactory;
 import org.apache.beehive.netui.compiler.typesystem.impl.env.SourcePositionImpl;
 import org.apache.beehive.netui.compiler.typesystem.type.AnnotationType;
 import org.apache.beehive.netui.compiler.typesystem.util.SourcePosition;
+import org.apache.beehive.netui.compiler.typesystem.TypesystemElement;
+import org.apache.beehive.netui.compiler.CompilerUtils;
 
 import java.util.HashMap;
 import java.util.Map;
@@ -35,10 +40,17 @@
         implements AnnotationInstance
 {
     private Map< AnnotationTypeElementDeclaration, AnnotationValue > _elementValues;
+    private TypesystemElement _containingElement;
     
-    public AnnotationInstanceImpl( com.sun.mirror.declaration.AnnotationMirror delegate )
+    public AnnotationInstanceImpl( com.sun.mirror.declaration.AnnotationMirror delegate,
+                                   TypesystemElement containingElement )
     {
         super( delegate );
+        
+        assert containingElement != null;
+        assert containingElement instanceof AnnotationInstance || containingElement instanceof MemberDeclaration
+            : containingElement.getClass().getName();
+        _containingElement = containingElement;
     }
 
     public AnnotationType getAnnotationType()
@@ -62,7 +74,9 @@
                     new HashMap< AnnotationTypeElementDeclaration, AnnotationValue >();
             for ( Map.Entry< com.sun.mirror.declaration.AnnotationTypeElementDeclaration, com.sun.mirror.declaration.AnnotationValue > i : entries )
             {
-                elementValues.put( WrapperFactory.get().getAnnotationTypeElementDeclaration( i.getKey() ), WrapperFactory.get().getAnnotationValue( i.getValue() ) );
+                elementValues.put(
+                        WrapperFactory.get().getAnnotationTypeElementDeclaration( i.getKey() ),
+                        WrapperFactory.get().getAnnotationValue( i.getValue(), this ) );
             }
             _elementValues = elementValues;
         }
@@ -73,5 +87,19 @@
     protected com.sun.mirror.declaration.AnnotationMirror getDelegate()
     {
         return ( com.sun.mirror.declaration.AnnotationMirror ) super.getDelegate();
+    }
+    
+    public TypeDeclaration getContainingType()
+    {
+        TypesystemElement containingDeclaration = _containingElement;
+        
+        while ( containingDeclaration instanceof AnnotationInstance )
+        {
+            containingDeclaration = ( ( AnnotationInstance ) containingDeclaration ).getContainingType();
+        }
+        
+        assert containingDeclaration != null;
+        assert containingDeclaration instanceof MemberDeclaration : containingDeclaration.getClass().getName();
+        return CompilerUtils.getOuterClass( ( MemberDeclaration ) containingDeclaration );
     }
 }

Modified: incubator/beehive/trunk/netui/src/compiler/org/apache/beehive/netui/compiler/typesystem/impl/declaration/AnnotationTypeElementDeclarationImpl.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/compiler/org/apache/beehive/netui/compiler/typesystem/impl/declaration/AnnotationTypeElementDeclarationImpl.java?rev=202448&r1=202447&r2=202448&view=diff
==============================================================================
--- incubator/beehive/trunk/netui/src/compiler/org/apache/beehive/netui/compiler/typesystem/impl/declaration/AnnotationTypeElementDeclarationImpl.java (original)
+++ incubator/beehive/trunk/netui/src/compiler/org/apache/beehive/netui/compiler/typesystem/impl/declaration/AnnotationTypeElementDeclarationImpl.java Wed Jun 29 15:18:59 2005
@@ -33,7 +33,7 @@
 
     public AnnotationValue getDefaultValue()
     {
-        return WrapperFactory.get().getAnnotationValue( getDelegate().getDefaultValue() );
+        return WrapperFactory.get().getAnnotationValue( getDelegate().getDefaultValue(), null );
     }
 
     public AnnotationTypeDeclaration getDeclaringAnnotationType()

Modified: incubator/beehive/trunk/netui/src/compiler/org/apache/beehive/netui/compiler/typesystem/impl/declaration/AnnotationValueImpl.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/compiler/org/apache/beehive/netui/compiler/typesystem/impl/declaration/AnnotationValueImpl.java?rev=202448&r1=202447&r2=202448&view=diff
==============================================================================
--- incubator/beehive/trunk/netui/src/compiler/org/apache/beehive/netui/compiler/typesystem/impl/declaration/AnnotationValueImpl.java (original)
+++ incubator/beehive/trunk/netui/src/compiler/org/apache/beehive/netui/compiler/typesystem/impl/declaration/AnnotationValueImpl.java Wed Jun 29 15:18:59 2005
@@ -18,23 +18,28 @@
 package org.apache.beehive.netui.compiler.typesystem.impl.declaration;
 
 import org.apache.beehive.netui.compiler.typesystem.declaration.AnnotationValue;
+import org.apache.beehive.netui.compiler.typesystem.declaration.AnnotationInstance;
 import org.apache.beehive.netui.compiler.typesystem.impl.DelegatingImpl;
 import org.apache.beehive.netui.compiler.typesystem.impl.WrapperFactory;
 import org.apache.beehive.netui.compiler.typesystem.impl.env.SourcePositionImpl;
 import org.apache.beehive.netui.compiler.typesystem.util.SourcePosition;
+import org.apache.beehive.netui.compiler.typesystem.type.TypeInstance;
 
 public class AnnotationValueImpl
         extends DelegatingImpl
         implements AnnotationValue
 {
-    public AnnotationValueImpl( com.sun.mirror.declaration.AnnotationValue delegate )
+    private AnnotationInstance _containingAnnotation;
+    
+    public AnnotationValueImpl( com.sun.mirror.declaration.AnnotationValue delegate, AnnotationInstance containingAnnotation )
     {
         super( delegate );
+        _containingAnnotation = containingAnnotation;
     }
 
     public Object getValue()
     {
-        return WrapperFactory.get().getWrapper( getDelegate().getValue() );
+        return WrapperFactory.get().getWrapper( getDelegate().getValue(), _containingAnnotation );
     }
 
     public SourcePosition getPosition()

Modified: incubator/beehive/trunk/netui/src/compiler/org/apache/beehive/netui/compiler/typesystem/impl/declaration/DeclarationImpl.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/compiler/org/apache/beehive/netui/compiler/typesystem/impl/declaration/DeclarationImpl.java?rev=202448&r1=202447&r2=202448&view=diff
==============================================================================
--- incubator/beehive/trunk/netui/src/compiler/org/apache/beehive/netui/compiler/typesystem/impl/declaration/DeclarationImpl.java (original)
+++ incubator/beehive/trunk/netui/src/compiler/org/apache/beehive/netui/compiler/typesystem/impl/declaration/DeclarationImpl.java Wed Jun 29 15:18:59 2005
@@ -55,7 +55,7 @@
             int j = 0;
             for ( com.sun.mirror.declaration.AnnotationMirror i : delegateCollection )
             {
-                array[j++] = WrapperFactory.get().getAnnotationInstance( i );
+                array[j++] = WrapperFactory.get().getAnnotationInstance( i, this );
             }
             _annotations = array;
         }

Modified: incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/Forward.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/Forward.java?rev=202448&r1=202447&r2=202448&view=diff
==============================================================================
--- incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/Forward.java (original)
+++ incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/Forward.java Wed Jun 29 15:18:59 2005
@@ -109,6 +109,7 @@
     private boolean _redirectSetThroughMethod = false;
     private boolean _restoreQueryString = false;
     private boolean _externalRedirect = false;
+    private boolean _inheritedPath = false;
     
     /**
      * An alternate ModuleConfig from which to resolve forwards if they are not resolved
@@ -498,6 +499,7 @@
             _redirectSpecifiedOnAnnotation = fc.hasExplicitRedirectValue();
             _restoreQueryString = fc.isRestoreQueryString();
             _externalRedirect = fc.isExternalRedirect();
+            _inheritedPath = fc.isInheritedPath();
             
             Class returnFormClass = null;
             
@@ -1057,5 +1059,14 @@
             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.
+     * @return <code>true</code> if the path is inherited from a path in a base class.
+     */ 
+    public boolean isInheritedPath()
+    {
+        return _inheritedPath;
     }
 }

Modified: incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/PageFlowPageFilter.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/PageFlowPageFilter.java?rev=202448&r1=202447&r2=202448&view=diff
==============================================================================
--- incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/PageFlowPageFilter.java (original)
+++ incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/PageFlowPageFilter.java Wed Jun 29 15:18:59 2005
@@ -172,7 +172,7 @@
             {
                 ModuleConfig prevModuleConfig = RequestUtils.getRequestModuleConfig( httpRequest );
                 MessageResources prevMessageResources = ( MessageResources ) request.getAttribute( Globals.MESSAGES_KEY );
-                initializeModule( httpRequest, httpResponse );
+                if ( rw == null || ! rw.isStayInCurrentModule() ) initializeModule( httpRequest, httpResponse );
                 
                 try
                 {
@@ -187,7 +187,16 @@
                     //
                     // Make sure that the current PageFlowController is set up for this request.
                     //
-                    PageFlowController curJpf = _flowControllerFactory.getPageFlowForRequest( requestContext );
+                    PageFlowController curJpf;
+                    if ( rw != null && rw.isStayInCurrentModule() )
+                    {
+                        rw.setStayInCurrentModule( false );
+                        curJpf = PageFlowUtils.getCurrentPageFlow( httpRequest, _servletContext );
+                    }
+                    else
+                    {
+                        curJpf = _flowControllerFactory.getPageFlowForRequest( requestContext );
+                    }
                     
                     //
                     // If there is no pageflow for the current Struts module, than fall back to default

Modified: incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/PageFlowRequestProcessor.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/PageFlowRequestProcessor.java?rev=202448&r1=202447&r2=202448&view=diff
==============================================================================
--- incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/PageFlowRequestProcessor.java (original)
+++ incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/PageFlowRequestProcessor.java Wed Jun 29 15:18:59 2005
@@ -2071,6 +2071,8 @@
             }
         }
         
+        if ( interceptors != null && interceptors.size() == 0 ) interceptors = null;
+        
         try
         {
             //

Modified: incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/PageFlowUtils.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/PageFlowUtils.java?rev=202448&r1=202447&r2=202448&view=diff
==============================================================================
--- incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/PageFlowUtils.java (original)
+++ incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/PageFlowUtils.java Wed Jun 29 15:18:59 2005
@@ -1433,7 +1433,7 @@
         
         if ( actionName.charAt( 0 ) != '/' )
         {
-            actionURI.append( getModulePath( request ) );
+            actionURI.append( InternalUtils.getModulePathFromReqAttr( request ) );
             actionURI.append( '/' );
         }
         

Modified: incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/ServletContainerAdapter.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/ServletContainerAdapter.java?rev=202448&r1=202447&r2=202448&view=diff
==============================================================================
--- incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/ServletContainerAdapter.java (original)
+++ incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/ServletContainerAdapter.java Wed Jun 29 15:18:59 2005
@@ -38,10 +38,10 @@
  *     </li>
  *     <li>
  *         Inside each of these resources is the name of a class that implements ServletContainerAdapter.  This class
- *         is loaded, and its {@link #accept} method is called.
+ *         is loaded, and its {@link #accept accept} method is called.
  *     </li>
  *     <li>
- *         If {@link #accept} returns <code>true</code>, then that implementation class is chosen as the current
+ *         If {@link #accept accept} returns <code>true</code>, then that implementation class is chosen as the current
  *         adapter; otherwise, the next one in the list is tried.
  *     </li>
  *     <li>If no adapters are discovered, an instance of {@link DefaultServletContainerAdapter} is used.

Modified: incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/annotations/Jpf.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/annotations/Jpf.java?rev=202448&r1=202447&r2=202448&view=diff
==============================================================================
--- incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/annotations/Jpf.java (original)
+++ incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/annotations/Jpf.java Wed Jun 29 15:18:59 2005
@@ -239,6 +239,9 @@
          * controller.
          */
         ValidatorVersion validatorVersion() default ValidatorVersion.oneZero;
+        
+        // TODO: doc
+        boolean inheritLocalPaths() default false;
     }
     
     /**

Modified: incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/config/PageFlowActionForward.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/config/PageFlowActionForward.java?rev=202448&r1=202447&r2=202448&view=diff
==============================================================================
--- incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/config/PageFlowActionForward.java (original)
+++ incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/config/PageFlowActionForward.java Wed Jun 29 15:18:59 2005
@@ -28,15 +28,16 @@
  */
 public class PageFlowActionForward extends ActionForward
 {
-    private boolean _isNestedReturn;
-    private boolean _isReturnToPage;
-    private boolean _isReturnToAction;
+    private boolean _isNestedReturn = false;
+    private boolean _isReturnToPage = false;
+    private boolean _isReturnToAction = false;
     private String _returnFormType;
     private String _returnFormMember;
-    private boolean _hasExplicitRedirectValue;
+    private boolean _hasExplicitRedirectValue = false;
     private ArrayList _actionOutputs;
     private boolean _restoreQueryString;
     private boolean _externalRedirect = false;
+    private boolean _inheritedPath = false;
 
 
     public boolean isNestedReturn()
@@ -185,11 +186,7 @@
     
     public ActionOutput[] getActionOutputs()
     {
-        if ( _actionOutputs == null )
-        {
-            return new ActionOutput[0];
-        }
-        
+        if ( _actionOutputs == null ) return new ActionOutput[0];
         return ( ActionOutput[] ) _actionOutputs.toArray( new ActionOutput[ _actionOutputs.size() ] );
     }
     
@@ -291,5 +288,15 @@
     public void setActionOutput19( String str )
     {
         setActionOutput( 19, str );
+    }
+
+    public boolean isInheritedPath()
+    {
+        return _inheritedPath;
+    }
+
+    public void setInheritedPath( boolean inheritedPath )
+    {
+        _inheritedPath = inheritedPath;
     }
 }

Modified: incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/config/PageFlowExceptionConfig.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/config/PageFlowExceptionConfig.java?rev=202448&r1=202447&r2=202448&view=diff
==============================================================================
--- incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/config/PageFlowExceptionConfig.java (original)
+++ incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/config/PageFlowExceptionConfig.java Wed Jun 29 15:18:59 2005
@@ -30,6 +30,7 @@
     private String _defaultMessage;
     private boolean _isPathContextRelative;
     private boolean _readonly;
+    private boolean _inheritedPath;
     
     private static final String DEFAULT_HANDLER_CLASS = PageFlowExceptionHandler.class.getName();
     
@@ -78,5 +79,15 @@
     public void setReadonly( boolean readonly )
     {
         _readonly = readonly;
+    }
+
+    public boolean isInheritedPath()
+    {
+        return _inheritedPath;
+    }
+
+    public void setInheritedPath( boolean inheritedPath )
+    {
+        _inheritedPath = inheritedPath;
     }
 }

Modified: incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/internal/DefaultActionForwardHandler.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/internal/DefaultActionForwardHandler.java?rev=202448&r1=202447&r2=202448&view=diff
==============================================================================
--- incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/internal/DefaultActionForwardHandler.java (original)
+++ incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/internal/DefaultActionForwardHandler.java Wed Jun 29 15:18:59 2005
@@ -157,14 +157,24 @@
                 isSpecialForward = true;
                 fwd = getRegisteredActionForwardHandler().doReturnToAction( context, actionName, pageFlowFwd );
             }
-            
-            //
-            // See if we should pop the current PageFlowController (done nesting).
-            //
-            if ( pageFlowFwd.isNestedReturn() )
+            else if ( pageFlowFwd.isNestedReturn() )
             {
+                //
+                // Pop the current PageFlowController (done nesting).
+                //
                 isSpecialForward = true;
                 fwd = getRegisteredActionForwardHandler().doNestingReturn( context, pageFlowFwd, mapping, form );
+            }
+            else
+            {
+                //
+                // It's a normal path.  Mark a particular request attribute if it's an inherited local path, which
+                // shouldn't be treated as a transfer to an external page flow (the base class page flow).
+                //
+                if ( pageFlowFwd.isInheritedPath() )
+                {
+                    PageFlowRequestWrapper.get( request ).setStayInCurrentModule( true );
+                }
             }
 
             //

Modified: incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/internal/DefaultExceptionsHandler.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/internal/DefaultExceptionsHandler.java?rev=202448&r1=202447&r2=202448&view=diff
==============================================================================
--- incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/internal/DefaultExceptionsHandler.java (original)
+++ incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/internal/DefaultExceptionsHandler.java Wed Jun 29 15:18:59 2005
@@ -344,10 +344,15 @@
             // 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 ) exceptionConfig ).isPathContextRelative() )
+            if ( exceptionConfig instanceof PageFlowExceptionConfig )
             {
-                result.setContextRelative( true );
+                PageFlowExceptionConfig pfec = ( PageFlowExceptionConfig ) exceptionConfig;
+                if ( pfec.isPathContextRelative() ) result.setContextRelative( true );
+                if ( pfec.isInheritedPath() )
+                {
+                    PageFlowRequestWrapper rw = PageFlowRequestWrapper.get( context.getRequest() );
+                    rw.setStayInCurrentModule( true );
+                }
             }
                     
             if ( _log.isDebugEnabled() )

Modified: incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/internal/PageFlowRequestWrapper.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/internal/PageFlowRequestWrapper.java?rev=202448&r1=202447&r2=202448&view=diff
==============================================================================
--- incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/internal/PageFlowRequestWrapper.java (original)
+++ incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/internal/PageFlowRequestWrapper.java Wed Jun 29 15:18:59 2005
@@ -42,6 +42,7 @@
         public boolean forwardedByButton = false;
         public MultipartRequestWrapper multipartRequestWrapper;
         public Throwable exceptionBeingHandled = null;
+        public boolean stayInCurrentModule = false;
     }
     
     private State _state = new State();
@@ -189,6 +190,16 @@
     public void setMultipartRequestWrapper( MultipartRequestWrapper multipartRequestWrapper )
     {
         _state.multipartRequestWrapper = multipartRequestWrapper;
+    }
+    
+    public boolean isStayInCurrentModule()
+    {
+        return _state.stayInCurrentModule;
+    }
+    
+    public void setStayInCurrentModule( boolean stayInCurrentModule )
+    {
+        _state.stayInCurrentModule = stayInCurrentModule;
     }
     
     public Throwable getExceptionBeingHandled()

Added: incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/Controller.jpf
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/Controller.jpf?rev=202448&view=auto
==============================================================================
--- incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/Controller.jpf (added)
+++ incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/Controller.jpf Wed Jun 29 15:18:59 2005
@@ -0,0 +1,17 @@
+package pageFlowCore.inheritLocalPaths;
+
+import org.apache.beehive.netui.pageflow.*;
+import org.apache.beehive.netui.pageflow.annotations.*;
+
+@Jpf.Controller(
+    simpleActions={
+        @Jpf.SimpleAction(name="begin", path="index.jsp"),
+        @Jpf.SimpleAction(name="doInheritLocalPaths", path="derived/Controller.jpf"),
+        @Jpf.SimpleAction(name="doNoInheritLocalPaths", path="derivedNoInheritLocalPaths/Controller.jpf"),
+        @Jpf.SimpleAction(name="nestedDone", navigateTo=Jpf.NavigateTo.currentPage)
+    }
+)
+public class Controller
+        extends PageFlowController
+{
+}

Propchange: incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/Controller.jpf
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/base/Controller.jpf
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/base/Controller.jpf?rev=202448&view=auto
==============================================================================
--- incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/base/Controller.jpf (added)
+++ incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/base/Controller.jpf Wed Jun 29 15:18:59 2005
@@ -0,0 +1,87 @@
+package pageFlowCore.inheritLocalPaths.base;
+
+import org.apache.beehive.netui.pageflow.*;
+import org.apache.beehive.netui.pageflow.annotations.*;
+
+@Jpf.Controller(
+    nested=true,
+    simpleActions={
+        @Jpf.SimpleAction(name="begin", path="page1.jsp"),
+        @Jpf.SimpleAction(name="done", returnAction="nestedDone")
+    },
+    forwards={
+        @Jpf.Forward(name="page3", path="page3.jsp")
+    },
+    catches={
+        @Jpf.Catch(type=Controller.IntentionalException1.class, path="page4.jsp"),
+        @Jpf.Catch(type=Controller.IntentionalException2.class, method="handleIt")
+    }
+)
+public abstract class Controller extends PageFlowController
+{
+    private int _actionCount = 0;
+
+    public static final class IntentionalException1 extends Exception {}
+    public static final class IntentionalException2 extends Exception {}
+
+    public int getActionCount()
+    {
+        return _actionCount;
+    }
+
+    protected void beforeAction()
+    {
+        ++_actionCount;
+    }
+
+    @Jpf.Action(
+        forwards={
+            @Jpf.Forward(name="page2", path="page2.jsp")
+        }
+    )
+    public Forward goPage2()
+    {
+        return new Forward( "page2" );
+    }
+
+    @Jpf.Action()
+    public Forward goPage3()
+    {
+        return new Forward( "page3" );
+    }
+
+    @Jpf.Action()
+    public Forward goPage4()
+        throws IntentionalException1
+    {
+        throw new IntentionalException1();
+    }
+
+    @Jpf.Action()
+    public Forward goPage5()
+        throws IntentionalException2
+    {
+        throw new IntentionalException2();
+    }
+
+    @Jpf.Action(
+        catches={
+            @Jpf.Catch(type=Controller.IntentionalException1.class, path="page6.jsp")
+        }
+    )
+    public Forward goPage6()
+        throws IntentionalException1
+    {
+        throw new IntentionalException1();
+    }
+
+    @Jpf.ExceptionHandler(
+        forwards={
+            @Jpf.Forward(name="page5", path="page5.jsp")
+        }
+    )
+    public Forward handleIt( IntentionalException2 ex, String actionName, String message, Object form )
+    {
+        return new Forward( "page5" );
+    }
+}

Propchange: incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/base/Controller.jpf
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/base/page1.jsp
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/base/page1.jsp?rev=202448&view=auto
==============================================================================
--- incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/base/page1.jsp (added)
+++ incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/base/page1.jsp Wed Jun 29 15:18:59 2005
@@ -0,0 +1,25 @@
+<%@ page language="java" contentType="text/html;charset=UTF-8"%>
+<%@ taglib prefix="netui" uri="http://beehive.apache.org/netui/tags-html-1.0"%>
+<%@ taglib prefix="netui-data" uri="http://beehive.apache.org/netui/tags-databinding-1.0"%>
+<%@ taglib prefix="netui-template" uri="http://beehive.apache.org/netui/tags-template-1.0"%>
+
+
+<netui:html>
+    <head>
+        <netui:base/>
+    </head>
+    <netui:body>
+        <h3>${pageFlow.URI}, Page 1</h3>
+
+        Got here through an inherited @Jpf.SimpleAction.
+        <br/>
+        <br/>
+        <netui:anchor action="goPage2">goPage2 (inherited @Jpf.Action Forward)</netui:anchor>
+        <br/>
+        <hr/>
+        action count: <b>${pageFlow.actionCount}</b>
+    </netui:body>
+</netui:html>
+
+  
+

Propchange: incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/base/page1.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/base/page2.jsp
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/base/page2.jsp?rev=202448&view=auto
==============================================================================
--- incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/base/page2.jsp (added)
+++ incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/base/page2.jsp Wed Jun 29 15:18:59 2005
@@ -0,0 +1,25 @@
+<%@ page language="java" contentType="text/html;charset=UTF-8"%>
+<%@ taglib prefix="netui" uri="http://beehive.apache.org/netui/tags-html-1.0"%>
+<%@ taglib prefix="netui-data" uri="http://beehive.apache.org/netui/tags-databinding-1.0"%>
+<%@ taglib prefix="netui-template" uri="http://beehive.apache.org/netui/tags-template-1.0"%>
+
+
+<netui:html>
+    <head>
+        <netui:base/>
+    </head>
+    <netui:body>
+        <h3>${pageFlow.URI}, Page 2</h3>
+
+        Got here through an inherited @Jpf.Action Forward.
+        <br/>
+        <br/>
+        <netui:anchor action="goPage3">goPage3 (inherited @Jpf.Controller Forward)</netui:anchor>
+        <br/>
+        <hr/>
+        action count: <b>${pageFlow.actionCount}</b>
+    </netui:body>
+</netui:html>
+
+  
+

Propchange: incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/base/page2.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/base/page3.jsp
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/base/page3.jsp?rev=202448&view=auto
==============================================================================
--- incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/base/page3.jsp (added)
+++ incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/base/page3.jsp Wed Jun 29 15:18:59 2005
@@ -0,0 +1,25 @@
+<%@ page language="java" contentType="text/html;charset=UTF-8"%>
+<%@ taglib prefix="netui" uri="http://beehive.apache.org/netui/tags-html-1.0"%>
+<%@ taglib prefix="netui-data" uri="http://beehive.apache.org/netui/tags-databinding-1.0"%>
+<%@ taglib prefix="netui-template" uri="http://beehive.apache.org/netui/tags-template-1.0"%>
+
+
+<netui:html>
+    <head>
+        <netui:base/>
+    </head>
+    <netui:body>
+        <h3>${pageFlow.URI}, Page 3</h3>
+
+        Got here through an inherited @Jpf.Controller Forward.
+        <br/>
+        <br/>
+        <netui:anchor action="goPage4">goPage4 (inherited @Jpf.Catch Forward)</netui:anchor>
+        <br/>
+        <hr/>
+        action count: <b>${pageFlow.actionCount}</b>
+    </netui:body>
+</netui:html>
+
+  
+

Propchange: incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/base/page3.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/base/page4.jsp
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/base/page4.jsp?rev=202448&view=auto
==============================================================================
--- incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/base/page4.jsp (added)
+++ incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/base/page4.jsp Wed Jun 29 15:18:59 2005
@@ -0,0 +1,25 @@
+<%@ page language="java" contentType="text/html;charset=UTF-8"%>
+<%@ taglib prefix="netui" uri="http://beehive.apache.org/netui/tags-html-1.0"%>
+<%@ taglib prefix="netui-data" uri="http://beehive.apache.org/netui/tags-databinding-1.0"%>
+<%@ taglib prefix="netui-template" uri="http://beehive.apache.org/netui/tags-template-1.0"%>
+
+
+<netui:html>
+    <head>
+        <netui:base/>
+    </head>
+    <netui:body>
+        <h3>${pageFlow.URI}, Page 4</h3>
+
+        Got here through an inherited @Jpf.Catch Forward.
+        <br/>
+        <br/>
+        <netui:anchor action="goPage5">goPage5 (inherited @Jpf.ExceptionHandler Forward)</netui:anchor>
+        <br/>
+        <hr/>
+        action count: <b>${pageFlow.actionCount}</b>
+    </netui:body>
+</netui:html>
+
+  
+

Propchange: incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/base/page4.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/base/page5.jsp
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/base/page5.jsp?rev=202448&view=auto
==============================================================================
--- incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/base/page5.jsp (added)
+++ incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/base/page5.jsp Wed Jun 29 15:18:59 2005
@@ -0,0 +1,25 @@
+<%@ page language="java" contentType="text/html;charset=UTF-8"%>
+<%@ taglib prefix="netui" uri="http://beehive.apache.org/netui/tags-html-1.0"%>
+<%@ taglib prefix="netui-data" uri="http://beehive.apache.org/netui/tags-databinding-1.0"%>
+<%@ taglib prefix="netui-template" uri="http://beehive.apache.org/netui/tags-template-1.0"%>
+
+
+<netui:html>
+    <head>
+        <netui:base/>
+    </head>
+    <netui:body>
+        <h3>${pageFlow.URI}, Page 5</h3>
+
+        Got here through an inherited @Jpf.ExceptionHandler Forward.
+        <br/>
+        <br/>
+        <netui:anchor action="goPage6">goPage6 (@Jpf.Catch on inherited action)</netui:anchor>
+        <br/>
+        <hr/>
+        action count: <b>${pageFlow.actionCount}</b>
+    </netui:body>
+</netui:html>
+
+  
+

Propchange: incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/base/page5.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/base/page6.jsp
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/base/page6.jsp?rev=202448&view=auto
==============================================================================
--- incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/base/page6.jsp (added)
+++ incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/base/page6.jsp Wed Jun 29 15:18:59 2005
@@ -0,0 +1,25 @@
+<%@ page language="java" contentType="text/html;charset=UTF-8"%>
+<%@ taglib prefix="netui" uri="http://beehive.apache.org/netui/tags-html-1.0"%>
+<%@ taglib prefix="netui-data" uri="http://beehive.apache.org/netui/tags-databinding-1.0"%>
+<%@ taglib prefix="netui-template" uri="http://beehive.apache.org/netui/tags-template-1.0"%>
+
+
+<netui:html>
+    <head>
+        <netui:base/>
+    </head>
+    <netui:body>
+        <h3>${pageFlow.URI}, Page 6</h3>
+
+        Got here through a @Jpf.Catch on an inherited action.
+        <br/>
+        <br/>
+        <netui:anchor action="done">done</netui:anchor>
+        <br/>
+        <hr/>
+        action count: <b>${pageFlow.actionCount}</b>
+    </netui:body>
+</netui:html>
+
+  
+

Propchange: incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/base/page6.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/derived/Controller.jpf
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/derived/Controller.jpf?rev=202448&view=auto
==============================================================================
--- incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/derived/Controller.jpf (added)
+++ incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/derived/Controller.jpf Wed Jun 29 15:18:59 2005
@@ -0,0 +1,12 @@
+package pageFlowCore.inheritLocalPaths.derived;
+
+import org.apache.beehive.netui.pageflow.*;
+import org.apache.beehive.netui.pageflow.annotations.*;
+
+@Jpf.Controller(
+    inheritLocalPaths=true
+)
+public class Controller
+    extends pageFlowCore.inheritLocalPaths.base.Controller
+{
+}

Propchange: incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/derived/Controller.jpf
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/derivedNoInheritLocalPaths/Controller.jpf
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/derivedNoInheritLocalPaths/Controller.jpf?rev=202448&view=auto
==============================================================================
--- incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/derivedNoInheritLocalPaths/Controller.jpf (added)
+++ incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/derivedNoInheritLocalPaths/Controller.jpf Wed Jun 29 15:18:59 2005
@@ -0,0 +1,10 @@
+package pageFlowCore.inheritLocalPaths.derivedNoInheritLocalPaths;
+
+import org.apache.beehive.netui.pageflow.*;
+import org.apache.beehive.netui.pageflow.annotations.*;
+
+@Jpf.Controller()
+public class Controller
+    extends pageFlowCore.inheritLocalPaths.base.Controller
+{
+}

Propchange: incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/derivedNoInheritLocalPaths/Controller.jpf
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/derivedNoInheritLocalPaths/page1.jsp
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/derivedNoInheritLocalPaths/page1.jsp?rev=202448&view=auto
==============================================================================
--- incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/derivedNoInheritLocalPaths/page1.jsp (added)
+++ incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/derivedNoInheritLocalPaths/page1.jsp Wed Jun 29 15:18:59 2005
@@ -0,0 +1,25 @@
+<%@ page language="java" contentType="text/html;charset=UTF-8"%>
+<%@ taglib prefix="netui" uri="http://beehive.apache.org/netui/tags-html-1.0"%>
+<%@ taglib prefix="netui-data" uri="http://beehive.apache.org/netui/tags-databinding-1.0"%>
+<%@ taglib prefix="netui-template" uri="http://beehive.apache.org/netui/tags-template-1.0"%>
+
+
+<netui:html>
+    <head>
+        <netui:base/>
+    </head>
+    <netui:body>
+        <h3>${pageFlow.URI}, Page 1</h3>
+
+        <span style="color: red">This is a page in the derived page flow.</span>
+        <br/>
+        <br/>
+        <netui:anchor action="goPage2">goPage2</netui:anchor>
+        <br/>
+        <hr/>
+        action count: <b>${pageFlow.actionCount}</b>
+    </netui:body>
+</netui:html>
+
+  
+

Propchange: incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/derivedNoInheritLocalPaths/page1.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/derivedNoInheritLocalPaths/page2.jsp
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/derivedNoInheritLocalPaths/page2.jsp?rev=202448&view=auto
==============================================================================
--- incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/derivedNoInheritLocalPaths/page2.jsp (added)
+++ incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/derivedNoInheritLocalPaths/page2.jsp Wed Jun 29 15:18:59 2005
@@ -0,0 +1,25 @@
+<%@ page language="java" contentType="text/html;charset=UTF-8"%>
+<%@ taglib prefix="netui" uri="http://beehive.apache.org/netui/tags-html-1.0"%>
+<%@ taglib prefix="netui-data" uri="http://beehive.apache.org/netui/tags-databinding-1.0"%>
+<%@ taglib prefix="netui-template" uri="http://beehive.apache.org/netui/tags-template-1.0"%>
+
+
+<netui:html>
+    <head>
+        <netui:base/>
+    </head>
+    <netui:body>
+        <h3>${pageFlow.URI}, Page 2</h3>
+
+        <span style="color: red">This is a page in the derived page flow.</span>
+        <br/>
+        <br/>
+        <netui:anchor action="goPage3">goPage3</netui:anchor>
+        <br/>
+        <hr/>
+        action count: <b>${pageFlow.actionCount}</b>
+    </netui:body>
+</netui:html>
+
+  
+

Propchange: incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/derivedNoInheritLocalPaths/page2.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/derivedNoInheritLocalPaths/page3.jsp
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/derivedNoInheritLocalPaths/page3.jsp?rev=202448&view=auto
==============================================================================
--- incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/derivedNoInheritLocalPaths/page3.jsp (added)
+++ incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/derivedNoInheritLocalPaths/page3.jsp Wed Jun 29 15:18:59 2005
@@ -0,0 +1,25 @@
+<%@ page language="java" contentType="text/html;charset=UTF-8"%>
+<%@ taglib prefix="netui" uri="http://beehive.apache.org/netui/tags-html-1.0"%>
+<%@ taglib prefix="netui-data" uri="http://beehive.apache.org/netui/tags-databinding-1.0"%>
+<%@ taglib prefix="netui-template" uri="http://beehive.apache.org/netui/tags-template-1.0"%>
+
+
+<netui:html>
+    <head>
+        <netui:base/>
+    </head>
+    <netui:body>
+        <h3>${pageFlow.URI}, Page 3</h3>
+
+        <span style="color: red">This is a page in the derived page flow.</span>
+        <br/>
+        <br/>
+        <netui:anchor action="goPage4">goPage4</netui:anchor>
+        <br/>
+        <hr/>
+        action count: <b>${pageFlow.actionCount}</b>
+    </netui:body>
+</netui:html>
+
+  
+

Propchange: incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/derivedNoInheritLocalPaths/page3.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/derivedNoInheritLocalPaths/page4.jsp
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/derivedNoInheritLocalPaths/page4.jsp?rev=202448&view=auto
==============================================================================
--- incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/derivedNoInheritLocalPaths/page4.jsp (added)
+++ incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/derivedNoInheritLocalPaths/page4.jsp Wed Jun 29 15:18:59 2005
@@ -0,0 +1,25 @@
+<%@ page language="java" contentType="text/html;charset=UTF-8"%>
+<%@ taglib prefix="netui" uri="http://beehive.apache.org/netui/tags-html-1.0"%>
+<%@ taglib prefix="netui-data" uri="http://beehive.apache.org/netui/tags-databinding-1.0"%>
+<%@ taglib prefix="netui-template" uri="http://beehive.apache.org/netui/tags-template-1.0"%>
+
+
+<netui:html>
+    <head>
+        <netui:base/>
+    </head>
+    <netui:body>
+        <h3>${pageFlow.URI}, Page 4</h3>
+
+        <span style="color: red">This is a page in the derived page flow.</span>
+        <br/>
+        <br/>
+        <netui:anchor action="goPage5">goPage5</netui:anchor>
+        <br/>
+        <hr/>
+        action count: <b>${pageFlow.actionCount}</b>
+    </netui:body>
+</netui:html>
+
+  
+

Propchange: incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/derivedNoInheritLocalPaths/page4.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/derivedNoInheritLocalPaths/page5.jsp
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/derivedNoInheritLocalPaths/page5.jsp?rev=202448&view=auto
==============================================================================
--- incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/derivedNoInheritLocalPaths/page5.jsp (added)
+++ incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/derivedNoInheritLocalPaths/page5.jsp Wed Jun 29 15:18:59 2005
@@ -0,0 +1,25 @@
+<%@ page language="java" contentType="text/html;charset=UTF-8"%>
+<%@ taglib prefix="netui" uri="http://beehive.apache.org/netui/tags-html-1.0"%>
+<%@ taglib prefix="netui-data" uri="http://beehive.apache.org/netui/tags-databinding-1.0"%>
+<%@ taglib prefix="netui-template" uri="http://beehive.apache.org/netui/tags-template-1.0"%>
+
+
+<netui:html>
+    <head>
+        <netui:base/>
+    </head>
+    <netui:body>
+        <h3>${pageFlow.URI}, Page 5</h3>
+
+        <span style="color: red">This is a page in the derived page flow.</span>
+        <br/>
+        <br/>
+        <netui:anchor action="goPage6">goPage6</netui:anchor>
+        <br/>
+        <hr/>
+        action count: <b>${pageFlow.actionCount}</b>
+    </netui:body>
+</netui:html>
+
+  
+

Propchange: incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/derivedNoInheritLocalPaths/page5.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/derivedNoInheritLocalPaths/page6.jsp
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/derivedNoInheritLocalPaths/page6.jsp?rev=202448&view=auto
==============================================================================
--- incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/derivedNoInheritLocalPaths/page6.jsp (added)
+++ incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/derivedNoInheritLocalPaths/page6.jsp Wed Jun 29 15:18:59 2005
@@ -0,0 +1,25 @@
+<%@ page language="java" contentType="text/html;charset=UTF-8"%>
+<%@ taglib prefix="netui" uri="http://beehive.apache.org/netui/tags-html-1.0"%>
+<%@ taglib prefix="netui-data" uri="http://beehive.apache.org/netui/tags-databinding-1.0"%>
+<%@ taglib prefix="netui-template" uri="http://beehive.apache.org/netui/tags-template-1.0"%>
+
+
+<netui:html>
+    <head>
+        <netui:base/>
+    </head>
+    <netui:body>
+        <h3>${pageFlow.URI}, Page 6</h3>
+
+        <span style="color: red">This is a page in the derived page flow.</span>
+        <br/>
+        <br/>
+        <netui:anchor action="done">done</netui:anchor>
+        <br/>
+        <hr/>
+        action count: <b>${pageFlow.actionCount}</b>
+    </netui:body>
+</netui:html>
+
+  
+

Propchange: incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/inheritLocalPaths/derivedNoInheritLocalPaths/page6.jsp
------------------------------------------------------------------------------
    svn:eol-style = native