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/11/14 19:39:36 UTC

svn commit: r344179 - in /beehive/trunk/netui: src/compiler-core/org/apache/beehive/netui/compiler/ src/pageflow/org/apache/beehive/netui/pageflow/ src/pageflow/org/apache/beehive/netui/pageflow/internal/ src/util/org/apache/beehive/netui/util/ test/we...

Author: rich
Date: Mon Nov 14 10:39:21 2005
New Revision: 344179

URL: http://svn.apache.org/viewcvs?rev=344179&view=rev
Log:
- Fix for http://issues.apache.org/jira/browse/BEEHIVE-1004 : Unnecessary wrapping of Struts ActionForm in request

- Added a missing error page for NullActionOutputException.  This didn't cause any errors because the error page came from MissingActionOutputException (a superclass).  The new error page is more descriptive.

- Updated and added a few tests.  One of these is a test to ensure that the server is not in production mode when the tests are run, since several of our tests fail in production mode due to suppressed dev-friendly error pages and the like.

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


Added:
    beehive/trunk/netui/test/webapps/drt/coreWeb/checkNoProductionMode.jsp   (with props)
    beehive/trunk/netui/test/webapps/drt/coreWeb/miniTests/initStrutsActionForm/
    beehive/trunk/netui/test/webapps/drt/coreWeb/miniTests/initStrutsActionForm/Controller.java   (with props)
    beehive/trunk/netui/test/webapps/drt/coreWeb/miniTests/initStrutsActionForm/index.jsp   (with props)
    beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/missingActionOutput/
    beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/missingActionOutput/Controller.java   (with props)
    beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/missingActionOutput/index.jsp   (with props)
    beehive/trunk/netui/test/webapps/drt/src/validation/validateStrutsActionForm/
    beehive/trunk/netui/test/webapps/drt/src/validation/validateStrutsActionForm/FormBeanMessages.properties   (with props)
    beehive/trunk/netui/test/webapps/drt/src/validation/validateStrutsActionForm/PageFlowMessages.properties   (with props)
    beehive/trunk/netui/test/webapps/drt/testRecorder/tests/InitStrutsActionForm.xml   (with props)
    beehive/trunk/netui/test/webapps/drt/testRecorder/tests/MissingActionOutput.xml   (with props)
    beehive/trunk/netui/test/webapps/drt/testRecorder/tests/_CheckNoProductionMode.xml   (with props)
Modified:
    beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/CompilerUtils.java
    beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/FormData.java
    beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/Forward.java
    beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/PageFlowRequestProcessor.java
    beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/internal/ExpressionAwareMessageResources.java
    beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/internal/InternalUtils.java
    beehive/trunk/netui/src/util/org/apache/beehive/netui/util/netui.properties
    beehive/trunk/netui/test/webapps/drt/coreWeb/validation/validateStrutsActionForm/Controller.java
    beehive/trunk/netui/test/webapps/drt/coreWeb/validation/validateStrutsActionForm/index.jsp
    beehive/trunk/netui/test/webapps/drt/src/miscJpf/test13/test13.properties
    beehive/trunk/netui/test/webapps/drt/testRecorder/config/testRecorder-tests.xml
    beehive/trunk/netui/test/webapps/drt/testRecorder/tests/MiscJpfTest13.xml
    beehive/trunk/netui/test/webapps/drt/testRecorder/tests/ValidateStrutsActionForm.xml

Modified: beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/CompilerUtils.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/CompilerUtils.java?rev=344179&r1=344178&r2=344179&view=diff
==============================================================================
--- beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/CompilerUtils.java (original)
+++ beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/CompilerUtils.java Mon Nov 14 10:39:21 2005
@@ -567,7 +567,7 @@
      */
     public static String getFormClassName( TypeDeclaration jclass, AnnotationProcessorEnvironment env )
     {
-        if ( isAssignableFrom( PAGEFLOW_FORM_CLASS_NAME, jclass, env ) )
+        if ( isAssignableFrom( STRUTS_FORM_CLASS_NAME, jclass, env ) )
         {
             return getLoadableName( jclass );
         }

Modified: beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/FormData.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/FormData.java?rev=344179&r1=344178&r2=344179&view=diff
==============================================================================
--- beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/FormData.java (original)
+++ beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/FormData.java Mon Nov 14 10:39:21 2005
@@ -21,48 +21,44 @@
 import org.apache.struts.validator.Resources;
 import org.apache.struts.action.ActionErrors;
 import org.apache.struts.action.ActionMapping;
+import org.apache.struts.action.ActionMessage;
 import org.apache.struts.util.MessageResources;
-import org.apache.struts.util.MessageResourcesFactory;
-import org.apache.struts.config.ModuleConfig;
 import org.apache.struts.Globals;
 import org.apache.commons.validator.Validator;
 import org.apache.commons.validator.ValidatorException;
 
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.ServletContext;
-import javax.servlet.ServletRequest;
 
 import org.apache.beehive.netui.util.logging.Logger;
 import org.apache.beehive.netui.pageflow.config.PageFlowActionMapping;
-import org.apache.beehive.netui.pageflow.internal.InternalExpressionUtils;
-import org.apache.beehive.netui.pageflow.internal.InternalConstants;
 import org.apache.beehive.netui.pageflow.internal.ExpressionAwareMessageResources;
 
 import java.lang.reflect.Method;
 import java.lang.reflect.InvocationTargetException;
 import java.util.Locale;
-import java.util.HashMap;
+import java.util.Iterator;
 
 
 /**
  * Base class for form beans associated with action methods in {@link PageFlowController}s.  Note that Page Flow actions
  * may take form beans of any type.
- */ 
+ */
 public class FormData extends ValidatorForm
 {
     private static final Logger _log = Logger.getInstance( FormData.class );
-    
+
     //
     // This is used to allow us to run against Validator 1.0 or 1.1.  The reflective Method is only used when running
     // against Validator 1.0 (legacy).
     //
     private static Method _legacyInitValidatorMethod = null;
-    
+
     static
     {
         try
         {
-            _legacyInitValidatorMethod = 
+            _legacyInitValidatorMethod =
                     Resources.class.getMethod( "initValidator",
                                                new Class[]{
                                                    String.class,
@@ -78,10 +74,10 @@
             // ignore -- we're in Validator 1.1 or later.
         }
     }
-    
+
     /**
      * Default constructor.
-     */ 
+     */
     public FormData()
     {
         super();
@@ -94,7 +90,7 @@
 
     /**
      * MessageResources that conglomerates a primary and backup MessageResources.
-     */ 
+     */
     private static class MergedMessageResources
             extends MessageResources
     {
@@ -115,7 +111,7 @@
             return message;
         }
     }
-    
+
     /**
      * Run all validation (declarative validation from annotations and the result of {@link Validatable#validate}) on
      * a given bean.
@@ -125,12 +121,12 @@
      * @param mapping the current ActionMapping.
      * @param request the current HttpServletRequest.
      * @return an ActionErrors object containing errors that occurred during bean validation.
-     */ 
+     */
     protected ActionErrors validateBean( Object bean, String beanName, ActionMapping mapping, HttpServletRequest request )
     {
         MessageResources messageResources = ( MessageResources ) request.getAttribute( Globals.MESSAGES_KEY );
         ExpressionAwareMessageResources.update( messageResources, bean );
-        
+
         //
         // See if this action uses a form that defines its own message resources.  If so, use those, or combine them
         // with the message resources from the current module.
@@ -139,36 +135,34 @@
         {
             PageFlowActionMapping pfam = ( PageFlowActionMapping ) mapping;
             String bundle = pfam.getFormBeanMessageResourcesKey();
-            
+
             if ( bundle != null )
             {
                 MessageResources formBeanResources = ( MessageResources ) request.getAttribute( bundle );
                 ExpressionAwareMessageResources.update( formBeanResources, bean );
-                
+
                 if ( formBeanResources != null )
                 {
                     if ( messageResources != null )
                     {
                         formBeanResources = new MergedMessageResources( messageResources, formBeanResources );
                     }
-                    
+
                     request.setAttribute( Globals.MESSAGES_KEY, formBeanResources );
                     messageResources = formBeanResources;
                 }
             }
         }
+
+        ServletContext servletContext = getServlet().getServletContext();
         
-        //
-        // If there's no MessageResources for this request, create one that can evaluate expressions.
-        //
-        if ( messageResources == null )
-        {
-            messageResources = new ExpressionAwareMessageResources( bean, request, getServlet().getServletContext() );
+        // If there's still no MessageResources for this request, create one that can evaluate expressions.
+        if (messageResources == null) {
+            messageResources = new ExpressionAwareMessageResources( bean, request, servletContext);
             request.setAttribute( Globals.MESSAGES_KEY, messageResources );
         }
-        
-        
-        ServletContext servletContext = getServlet().getServletContext();
+
+
         ActionErrors errors = new ActionErrors();
 
         //
@@ -183,7 +177,7 @@
                 //
                 Validator beanV = initValidator( beanName, bean, servletContext, request, errors, page );
                 validatorResults = beanV.validate();
-                
+
                 //
                 // Run validations associated with the action.
                 //
@@ -203,11 +197,53 @@
         {
             ( ( Validatable ) bean ).validate( mapping, request, errors );
         }
+
+        // Add any additional errors specified by a subclass.
+        ActionErrors additionalActionErrors = getAdditionalActionErrors(mapping, request);
+        if (additionalActionErrors != null) {
+            mergeActionErrors(errors, additionalActionErrors);
+        }
         
         return errors;
     }
-    
-    private static Validator initValidator( String beanName, Object bean, ServletContext context, 
+
+    private static void mergeActionErrors(ActionErrors main, ActionErrors toAdd)
+    {
+        for (Iterator i = toAdd.properties(); i.hasNext();) {
+            String propertyName = (String) i.next();
+
+            for (Iterator j = toAdd.get(propertyName); j.hasNext();) {
+                ActionMessage actionMessage = (ActionMessage) j.next();
+                boolean alreadyExists = false;
+
+                for (Iterator k = main.get(propertyName); k.hasNext(); ) {
+                    ActionMessage existingActionMessage = (ActionMessage) k.next();
+
+                    if (existingActionMessage.getKey().equals(actionMessage.getKey())) {
+                        alreadyExists = true;
+                        break;
+                    }
+                }
+
+                if (! alreadyExists) {
+                    main.add(propertyName, actionMessage);
+                }
+            }
+        }
+    }
+
+    /**
+     * Get an additional list of validation errors.  This list will upplemented the errors from declarative
+     * validation (annotations) and invocation of {@link Validatable#validate} if the {@link Validatable} interface
+     * is implemented.  The base implementation returns <code>null</code>, which signifies that there are no additional
+     * errors.
+     */
+    protected ActionErrors getAdditionalActionErrors(ActionMapping mapping, HttpServletRequest request)
+    {
+        return null;
+    }
+
+    private static Validator initValidator( String beanName, Object bean, ServletContext context,
                                             HttpServletRequest request, ActionErrors errors, int page )
     {
         if ( _legacyInitValidatorMethod != null )
@@ -216,7 +252,7 @@
             {
                 Object[] args = new Object[]{ beanName, bean, context, request, errors, new Integer( page ) };
                 Validator validator = ( Validator ) _legacyInitValidatorMethod.invoke( Resources.class, args );
-                
+
                 //
                 // The NetUI validator rules work on both 1.1 and 1.2.  They take ActionMessages instead of ActionErrors.
                 //

Modified: beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/Forward.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/Forward.java?rev=344179&r1=344178&r2=344179&view=diff
==============================================================================
--- beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/Forward.java (original)
+++ beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/Forward.java Mon Nov 14 10:39:21 2005
@@ -557,7 +557,7 @@
                     Field field = _flowController.getClass().getDeclaredField( retFormMember );
                     returnFormClass = field.getType();
                     if ( ! Modifier.isPublic( field.getModifiers() ) ) field.setAccessible( true );
-                    ActionForm form = InternalUtils.wrapFormBean( field.get( _flowController ) );
+                    Object form = field.get( _flowController );
                     
                     if ( form != null )
                     {

Modified: beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/PageFlowRequestProcessor.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/PageFlowRequestProcessor.java?rev=344179&r1=344178&r2=344179&view=diff
==============================================================================
--- beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/PageFlowRequestProcessor.java (original)
+++ beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/PageFlowRequestProcessor.java Mon Nov 14 10:39:21 2005
@@ -35,16 +35,7 @@
 import org.apache.beehive.netui.pageflow.interceptor.action.InterceptorForward;
 import org.apache.beehive.netui.pageflow.interceptor.action.internal.ActionInterceptors;
 import org.apache.beehive.netui.pageflow.interceptor.request.RequestInterceptorContext;
-import org.apache.beehive.netui.pageflow.internal.AdapterManager;
-import org.apache.beehive.netui.pageflow.internal.DefaultURLRewriter;
-import org.apache.beehive.netui.pageflow.internal.FlowControllerAction;
-import org.apache.beehive.netui.pageflow.internal.InternalUtils;
-import org.apache.beehive.netui.pageflow.internal.JavaControlUtils;
-import org.apache.beehive.netui.pageflow.internal.LegacySettings;
-import org.apache.beehive.netui.pageflow.internal.PageFlowRequestWrapper;
-import org.apache.beehive.netui.pageflow.internal.InternalConstants;
-import org.apache.beehive.netui.pageflow.internal.UnhandledException;
-import org.apache.beehive.netui.pageflow.internal.DeferredSessionStorageHandler;
+import org.apache.beehive.netui.pageflow.internal.*;
 import org.apache.beehive.netui.pageflow.scoping.ScopedRequest;
 import org.apache.beehive.netui.pageflow.scoping.ScopedServletUtils;
 import org.apache.beehive.netui.script.common.ImplicitObjectUtil;
@@ -63,6 +54,7 @@
 import org.apache.struts.action.ActionServlet;
 import org.apache.struts.action.DynaActionForm;
 import org.apache.struts.action.DynaActionFormClass;
+import org.apache.struts.action.ActionErrors;
 import org.apache.struts.config.ActionConfig;
 import org.apache.struts.config.FormBeanConfig;
 import org.apache.struts.config.ForwardConfig;
@@ -2099,5 +2091,40 @@
     {
         request = PageFlowRequestWrapper.wrapRequest( request );
         processForwardConfig( request, response, forward );
+    }
+
+    protected boolean processValidate(HttpServletRequest request, HttpServletResponse response, ActionForm form,
+                                      ActionMapping mapping) throws IOException, ServletException {
+        
+        //
+        // The raw Struts ActionForm doesn't have our logic for enabling declarative validation annotations.
+        // If this is what we have, create a wrapper that extends FormData to process validation annotations,
+        // but will also invoke the ActionForm's validate().
+        //
+        if (form != null && ! (form instanceof FormData)) {
+            ActionForm originalForm = form;
+            form = new ActionFormValidationWrapper(originalForm);
+            form.setServlet(servlet);
+            form.setMultipartRequestHandler(originalForm.getMultipartRequestHandler());
+        }
+        
+        return super.processValidate(request, response, form, mapping);
+    }
+    
+    private static class ActionFormValidationWrapper extends FormData
+    {
+        private ActionForm _actionForm;
+        
+        public ActionFormValidationWrapper(ActionForm actionForm) {
+            _actionForm = actionForm;
+        }
+
+        public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
+            return validateBean(_actionForm, mapping.getAttribute(), mapping, request);
+        }
+
+        protected ActionErrors getAdditionalActionErrors(ActionMapping mapping, HttpServletRequest request) {
+            return _actionForm.validate(mapping, request);
+        }
     }
 }

Modified: beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/internal/ExpressionAwareMessageResources.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/internal/ExpressionAwareMessageResources.java?rev=344179&r1=344178&r2=344179&view=diff
==============================================================================
--- beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/internal/ExpressionAwareMessageResources.java (original)
+++ beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/internal/ExpressionAwareMessageResources.java Mon Nov 14 10:39:21 2005
@@ -18,6 +18,7 @@
 package org.apache.beehive.netui.pageflow.internal;
 
 import org.apache.struts.util.MessageResources;
+import org.apache.struts.Globals;
 import org.apache.beehive.netui.util.logging.Logger;
 
 import javax.servlet.http.HttpServletRequest;
@@ -45,6 +46,10 @@
         _formBean = formBean;
         _request = request;
         _servletContext = servletContext;
+        
+        // There is no message resources delegate.  Look in the "global" Struts location in the Servlet context.
+        _delegate = (MessageResources) servletContext.getAttribute(Globals.MESSAGES_KEY);
+
     }
     
     public ExpressionAwareMessageResources( MessageResources delegate, Object formBean, HttpServletRequest request,

Modified: beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/internal/InternalUtils.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/internal/InternalUtils.java?rev=344179&r1=344178&r2=344179&view=diff
==============================================================================
--- beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/internal/InternalUtils.java (original)
+++ beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/internal/InternalUtils.java Mon Nov 14 10:39:21 2005
@@ -177,11 +177,7 @@
     {
         if ( formBean == null ) return null;
 
-        //
-        // Notice that we even wrap form beans that extend ActionForm but don't extend FormData.  This is because
-        // FormData has special logic to make validation annotations work correctly.
-        //
-        if ( formBean instanceof FormData )
+        if ( formBean instanceof ActionForm )
         {
             return ( ActionForm ) formBean;
         }

Modified: beehive/trunk/netui/src/util/org/apache/beehive/netui/util/netui.properties
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/src/util/org/apache/beehive/netui/util/netui.properties?rev=344179&r1=344178&r2=344179&view=diff
==============================================================================
--- beehive/trunk/netui/src/util/org/apache/beehive/netui/util/netui.properties (original)
+++ beehive/trunk/netui/src/util/org/apache/beehive/netui/util/netui.properties Mon Nov 14 10:39:21 2005
@@ -229,7 +229,25 @@
 
 PageFlow_MissingActionOutputException_Message= \
 The required action output "{0}" was not present on forward "{1}" (action {2} in Page Flow {3}).
-                             
+
+PageFlow_NullActionOutputException_Page= \
+<html><head><title>Page Flow Error - Null Action Output</title></head>\n \
+<body>\n \
+<h1>Page Flow Error - Null Action Output</h1>\n \
+<table border="1" cellspacing="0">\n \
+<tr><td><b>Page Flow:</b></td><td>{3}</td></tr>\n \
+<tr><td><b>Action:</b></td><td>{2}</td></tr>\n \
+<tr><td><b>Forward:</b></td><td>{1}</td></tr>\n \
+<tr><td><b>Action Output:</b></td><td>{0}</td></tr>\n \
+</table><br />\n \
+<span style="color:red">\n \
+    The required action output <b>{0}</b> was <code>null</code> on forward <b>{1}</b>.\n \
+</span>\n \
+</body></html>\n
+
+PageFlow_NullActionOutputException_Message= \
+The required action output "{0}" was null on forward "{1}" (action {2} in Page Flow {3}).
+
 PageFlow_MismatchedActionOutputException_Page= \
 <html><head><title>Page Flow Error - Mismatched Action Output</title></head>\n \
 <body>\n \

Added: beehive/trunk/netui/test/webapps/drt/coreWeb/checkNoProductionMode.jsp
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/test/webapps/drt/coreWeb/checkNoProductionMode.jsp?rev=344179&view=auto
==============================================================================
--- beehive/trunk/netui/test/webapps/drt/coreWeb/checkNoProductionMode.jsp (added)
+++ beehive/trunk/netui/test/webapps/drt/coreWeb/checkNoProductionMode.jsp Mon Nov 14 10:39:21 2005
@@ -0,0 +1,11 @@
+<%@ page language="java" contentType="text/html;charset=UTF-8"%>
+
+<html>
+    <body>
+        in production mode: <b><%= org.apache.beehive.netui.pageflow.internal.AdapterManager.getServletContainerAdapter(pageContext.getServletContext()).isInProductionMode() %></b>
+        <br/>
+        <br/>
+        Production mode must be <code>false</code> when running our automated tests; many of them
+        depend this to display dev-mode error pages and the like.
+    </body>
+</html>

Propchange: beehive/trunk/netui/test/webapps/drt/coreWeb/checkNoProductionMode.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Added: beehive/trunk/netui/test/webapps/drt/coreWeb/miniTests/initStrutsActionForm/Controller.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/test/webapps/drt/coreWeb/miniTests/initStrutsActionForm/Controller.java?rev=344179&view=auto
==============================================================================
--- beehive/trunk/netui/test/webapps/drt/coreWeb/miniTests/initStrutsActionForm/Controller.java (added)
+++ beehive/trunk/netui/test/webapps/drt/coreWeb/miniTests/initStrutsActionForm/Controller.java Mon Nov 14 10:39:21 2005
@@ -0,0 +1,63 @@
+/*
+ * 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 miniTests.initStrutsActionForm;
+
+import org.apache.beehive.netui.pageflow.PageFlowController;
+import org.apache.beehive.netui.pageflow.Forward;
+import org.apache.beehive.netui.pageflow.annotations.Jpf;
+
+@Jpf.Controller()
+public class Controller extends PageFlowController
+{
+    @Jpf.Action(
+        forwards={
+            @Jpf.Forward(name="index", path="index.jsp")
+        }
+    )
+    public Forward begin()
+    {
+        MyForm form = new MyForm();
+        form.setFoo("init val");
+        return new Forward("index", form);
+    }
+
+    @Jpf.Action(
+        forwards={
+            @Jpf.Forward(name="index", path="index.jsp")
+        }
+    )
+    public Forward submit(MyForm form)
+    {
+        return new Forward("index");
+    }
+
+    public static class MyForm extends org.apache.struts.action.ActionForm
+    {
+        private String _foo;
+
+        public String getFoo()
+        {
+            return _foo;
+        }
+
+        public void setFoo(String foo)
+        {
+            _foo = foo;
+        }
+    }
+}

Propchange: beehive/trunk/netui/test/webapps/drt/coreWeb/miniTests/initStrutsActionForm/Controller.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: beehive/trunk/netui/test/webapps/drt/coreWeb/miniTests/initStrutsActionForm/index.jsp
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/test/webapps/drt/coreWeb/miniTests/initStrutsActionForm/index.jsp?rev=344179&view=auto
==============================================================================
--- beehive/trunk/netui/test/webapps/drt/coreWeb/miniTests/initStrutsActionForm/index.jsp (added)
+++ beehive/trunk/netui/test/webapps/drt/coreWeb/miniTests/initStrutsActionForm/index.jsp Mon Nov 14 10:39:21 2005
@@ -0,0 +1,31 @@
+<%@ 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}</h3>
+
+        This test ensures that you can use the expected Struts request attribute to access a
+        Struts ActionForm that has been passed to the page (and that the bean is not wrapped in an
+        AnyBeanActionForm).
+
+        <br/>
+        <br/>
+        myForm class: <b>${myForm.class.name}</b>
+
+        <br/>
+        <br/>
+        <netui:form action="submit">
+            foo: <netui:textBox dataSource="actionForm.foo"/>
+        </netui:form>
+    </netui:body>
+</netui:html>
+
+  
+

Propchange: beehive/trunk/netui/test/webapps/drt/coreWeb/miniTests/initStrutsActionForm/index.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Added: beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/missingActionOutput/Controller.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/missingActionOutput/Controller.java?rev=344179&view=auto
==============================================================================
--- beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/missingActionOutput/Controller.java (added)
+++ beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/missingActionOutput/Controller.java Mon Nov 14 10:39:21 2005
@@ -0,0 +1,65 @@
+/*
+ * 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 pageFlowCore.missingActionOutput;
+
+import org.apache.beehive.netui.pageflow.PageFlowController;
+import org.apache.beehive.netui.pageflow.Forward;
+import org.apache.beehive.netui.pageflow.annotations.Jpf;
+
+@Jpf.Controller(
+    simpleActions={
+        @Jpf.SimpleAction(name="begin", path="index.jsp")
+    },
+    catches={
+        @Jpf.Catch(type=Exception.class, path="index.jsp")
+    }
+)
+public class Controller extends PageFlowController
+{
+    @Jpf.Action(
+        forwards={
+            @Jpf.Forward(
+                name="index",
+                path="index.jsp",
+                actionOutputs={
+                    @Jpf.ActionOutput(name="foo", type=String.class)
+                }
+            )
+        }
+    )
+    public Forward nullActionOutput()
+    {
+        return new Forward("index", "foo", null);
+    }
+
+    @Jpf.Action(
+        forwards={
+            @Jpf.Forward(
+                name="index",
+                path="index.jsp",
+                actionOutputs={
+                    @Jpf.ActionOutput(name="foo", type=String.class)
+                }
+            )
+        }
+    )
+    public Forward missingActionOutput()
+    {
+        return new Forward("index");
+    }
+}

Propchange: beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/missingActionOutput/Controller.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/missingActionOutput/index.jsp
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/missingActionOutput/index.jsp?rev=344179&view=auto
==============================================================================
--- beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/missingActionOutput/index.jsp (added)
+++ beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/missingActionOutput/index.jsp Mon Nov 14 10:39:21 2005
@@ -0,0 +1,30 @@
+<%@ 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}</h3>
+
+        This test ensures that the correct exceptions are thrown for missing action output
+        (MissingActionOutputException) and null action output (NullActionOutputException).
+
+        <br/>
+        <br/>
+        exception: <netui:exceptions/>
+
+        <br/>
+        <br/>
+        <netui:anchor action="missingActionOutput">missingActionOutput</netui:anchor>
+        <br/>
+        <netui:anchor action="nullActionOutput">nullActionOutput</netui:anchor>
+    </netui:body>
+</netui:html>
+
+  
+

Propchange: beehive/trunk/netui/test/webapps/drt/coreWeb/pageFlowCore/missingActionOutput/index.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: beehive/trunk/netui/test/webapps/drt/coreWeb/validation/validateStrutsActionForm/Controller.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/test/webapps/drt/coreWeb/validation/validateStrutsActionForm/Controller.java?rev=344179&r1=344178&r2=344179&view=diff
==============================================================================
--- beehive/trunk/netui/test/webapps/drt/coreWeb/validation/validateStrutsActionForm/Controller.java (original)
+++ beehive/trunk/netui/test/webapps/drt/coreWeb/validation/validateStrutsActionForm/Controller.java Mon Nov 14 10:39:21 2005
@@ -6,6 +6,9 @@
 @Jpf.Controller(
     simpleActions={
         @Jpf.SimpleAction(name="begin", path="index.jsp")
+    },
+    messageBundles={
+        @Jpf.MessageBundle(bundlePath="validation.validateStrutsActionForm.PageFlowMessages")
     }
 )
 public class Controller extends PageFlowController
@@ -14,6 +17,12 @@
         forwards={
             @Jpf.Forward(name="index", path="index.jsp")
         },
+        validatableProperties={
+            @Jpf.ValidatableProperty(
+                propertyName="foo",
+                validateMinLength=@Jpf.ValidateMinLength(chars=2, messageKey="actionMessage")
+            )
+        },
         validationErrorForward=@Jpf.Forward(name="failure", path="index.jsp")
     )
     public Forward submit( MyForm form )
@@ -21,12 +30,15 @@
         return new Forward( "index" );
     }
 
+    @Jpf.FormBean(
+        messageBundle="validation.validateStrutsActionForm.FormBeanMessages"
+    )
     public static class MyForm extends org.apache.struts.action.ActionForm
     {
         private String _foo;
 
         @Jpf.ValidatableProperty(
-            validateRequired=@Jpf.ValidateRequired(message="did validation!")
+            validateRequired=@Jpf.ValidateRequired(messageKey="beanMessage")
         )
         public String getFoo()
         {

Modified: beehive/trunk/netui/test/webapps/drt/coreWeb/validation/validateStrutsActionForm/index.jsp
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/test/webapps/drt/coreWeb/validation/validateStrutsActionForm/index.jsp?rev=344179&r1=344178&r2=344179&view=diff
==============================================================================
--- beehive/trunk/netui/test/webapps/drt/coreWeb/validation/validateStrutsActionForm/index.jsp (original)
+++ beehive/trunk/netui/test/webapps/drt/coreWeb/validation/validateStrutsActionForm/index.jsp Mon Nov 14 10:39:21 2005
@@ -11,8 +11,10 @@
     <netui:body>
         <h3>${pageFlow.URI}</h3>
 
-        <netui:anchor action="begin">begin</netui:anchor>
-
+        This test ensures that declarative validation annotations (including form-bean-specific
+        message resources) works correctly on beans that extend the raw Struts ActionForm.
+        <br/>
+        <br/>
         <netui:form action="submit">
             foo: <netui:textBox dataSource="actionForm.foo"/><netui:error key="foo"/>
             <br/>

Modified: beehive/trunk/netui/test/webapps/drt/src/miscJpf/test13/test13.properties
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/test/webapps/drt/src/miscJpf/test13/test13.properties?rev=344179&r1=344178&r2=344179&view=diff
==============================================================================
--- beehive/trunk/netui/test/webapps/drt/src/miscJpf/test13/test13.properties (original)
+++ beehive/trunk/netui/test/webapps/drt/src/miscJpf/test13/test13.properties Mon Nov 14 10:39:21 2005
@@ -1,9 +1,6 @@
 index.title=Struts Starter Application
 index.heading=Hello World!
 
-errors.header=<h4>Validation Error(s)</h4><ul>
-errors.footer=</ul><hr>
-
 error.lastName=<li>Please enter your last name.  It's required.
 error.address=<li>Please enter your address.  It's required.
 error.sex=<li>Please enter your sex.  It's required.

Added: beehive/trunk/netui/test/webapps/drt/src/validation/validateStrutsActionForm/FormBeanMessages.properties
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/test/webapps/drt/src/validation/validateStrutsActionForm/FormBeanMessages.properties?rev=344179&view=auto
==============================================================================
--- beehive/trunk/netui/test/webapps/drt/src/validation/validateStrutsActionForm/FormBeanMessages.properties (added)
+++ beehive/trunk/netui/test/webapps/drt/src/validation/validateStrutsActionForm/FormBeanMessages.properties Mon Nov 14 10:39:21 2005
@@ -0,0 +1 @@
+beanMessage=message from bean

Propchange: beehive/trunk/netui/test/webapps/drt/src/validation/validateStrutsActionForm/FormBeanMessages.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Added: beehive/trunk/netui/test/webapps/drt/src/validation/validateStrutsActionForm/PageFlowMessages.properties
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/test/webapps/drt/src/validation/validateStrutsActionForm/PageFlowMessages.properties?rev=344179&view=auto
==============================================================================
--- beehive/trunk/netui/test/webapps/drt/src/validation/validateStrutsActionForm/PageFlowMessages.properties (added)
+++ beehive/trunk/netui/test/webapps/drt/src/validation/validateStrutsActionForm/PageFlowMessages.properties Mon Nov 14 10:39:21 2005
@@ -0,0 +1 @@
+actionMessage=message from action

Propchange: beehive/trunk/netui/test/webapps/drt/src/validation/validateStrutsActionForm/PageFlowMessages.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: beehive/trunk/netui/test/webapps/drt/testRecorder/config/testRecorder-tests.xml
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/test/webapps/drt/testRecorder/config/testRecorder-tests.xml?rev=344179&r1=344178&r2=344179&view=diff
==============================================================================
--- beehive/trunk/netui/test/webapps/drt/testRecorder/config/testRecorder-tests.xml (original)
+++ beehive/trunk/netui/test/webapps/drt/testRecorder/config/testRecorder-tests.xml Mon Nov 14 10:39:21 2005
@@ -72,6 +72,30 @@
    </categories>
    <tests>
       <test>
+         <name>_CheckNoProductionMode</name>
+         <description>Production mode must be false when running our automated tests; many of them depend this to display dev-mode error pages and the like.  This test ensures that.</description>
+         <webapp>coreWeb</webapp>
+         <categories>
+            <category>drt</category>
+            <category>bvt</category>
+            <category>manualTests</category>
+            <category>bvt.struts11</category>
+            <category>radarBugs</category>
+            <category>clarifyBugs</category>
+            <category>jiraBugs</category>
+            <category>databinding</category>
+            <category>datagrid</category>
+            <category>errorTests</category>
+            <category>mockPortal</category>
+            <category>corePageFlow</category>
+            <category>tags</category>
+            <category>templates</category>
+            <category>trees</category>
+            <category>xhtml</category>
+            <category>qaTests</category>
+         </categories>
+      </test>
+      <test>
          <name>AbstractController</name>
          <description>Test to ensure that the framework will not try to instantiate an abstract page flow controller if you hit a page in its directory path.</description>
          <webapp>coreWeb</webapp>
@@ -4474,6 +4498,19 @@
          </features>
       </test>
       <test>
+         <name>InitStrutsActionForm</name>
+         <description>Test to ensure that you can use the expected Struts request attribute to access a Struts ActionForm that has been passed to the page (and that the bean is not wrapped in an AnyBeanActionForm).</description>
+         <webapp>coreWeb</webapp>
+         <categories>
+            <category>bvt</category>
+            <category>bvt.struts11</category>
+         </categories>
+         <features>
+            <feature>PageFlow</feature>
+            <feature>Form</feature>
+         </features>
+      </test>
+      <test>
          <name>InitWithDerivedFormBean</name>
          <description>Test to ensure that you can initialize a page with an instance of a form bean class that's derived from the one that's expected.</description>
          <webapp>coreWeb</webapp>
@@ -5252,6 +5289,16 @@
          </categories>
       </test>
       <test>
+         <name>MissingActionOutput</name>
+         <description>Test to ensure that the correct exceptions are thrown for missing action output (MissingActionOutputException) and null action output (NullActionOutputException).</description>
+         <webapp>coreWeb</webapp>
+         <categories>
+            <category>bvt</category>
+            <category>bvt.struts11</category>
+            <category>corePageFlow</category>
+         </categories>
+      </test>
+      <test>
          <name>MockPortal</name>
          <description>Tests basic link navigation, form submittal, nesting, and scoping in our simulated portal.</description>
          <webapp>coreWeb</webapp>
@@ -8298,7 +8345,7 @@
       </test>
       <test>
          <name>ValidateStrutsActionForm</name>
-         <description>Test of validation annotations on a Struts ActionForm. </description>
+         <description>Test to ensure that declarative validation annotations (including form-bean-specific message resources) works correctly on beans that extend the raw Struts ActionForm.</description>
          <webapp>coreWeb</webapp>
          <categories>
             <category>bvt</category>

Added: beehive/trunk/netui/test/webapps/drt/testRecorder/tests/InitStrutsActionForm.xml
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/InitStrutsActionForm.xml?rev=344179&view=auto
==============================================================================
--- beehive/trunk/netui/test/webapps/drt/testRecorder/tests/InitStrutsActionForm.xml (added)
+++ beehive/trunk/netui/test/webapps/drt/testRecorder/tests/InitStrutsActionForm.xml Mon Nov 14 10:39:21 2005
@@ -0,0 +1,112 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<recorderSession xmlns="http://beehive.apache.org/netui/tools/testrecorder/2004/session">
+<sessionName>InitStrutsActionForm</sessionName>
+<tester>rich</tester>
+<startDate>14 Nov 2005, 11:06:44.967 AM MST</startDate>
+<description>Test to ensure that you can use the expected Struts request attribute to access a Struts ActionForm that has been passed to the page (and that the bean is not wrapped in an AnyBeanActionForm).</description>
+<tests>
+<test>
+<testNumber>1</testNumber>
+<request>
+<protocol>HTTP</protocol>
+<protocolVersion>1.1</protocolVersion>
+<host>localhost</host>
+<port>8080</port>
+<uri>/coreWeb/miniTests/initStrutsActionForm/Controller.jpf</uri>
+<method>GET</method>
+<parameters>
+</parameters>
+<cookies>
+<cookie>
+<name>JSESSIONID</name>
+<value>12A6E6D37D43696DAB152A389F3B65F4</value>
+</cookie>
+<cookie>
+<name>nde-textsize</name>
+<value>16px</value>
+</cookie>
+<cookie>
+<name>Country</name>
+<value>US</value>
+</cookie>
+<cookie>
+<name>Language</name>
+<value>en</value>
+</cookie>
+</cookies>
+<headers>
+<header>
+<name>accept</name>
+<value>text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5</value>
+</header>
+<header>
+<name>accept-charset</name>
+<value>ISO-8859-1,utf-8;q=0.7,*;q=0.7</value>
+</header>
+<header>
+<name>accept-encoding</name>
+<value>gzip,deflate</value>
+</header>
+<header>
+<name>accept-language</name>
+<value>en-us,en;q=0.7,ja;q=0.3</value>
+</header>
+<header>
+<name>connection</name>
+<value>keep-alive</value>
+</header>
+<header>
+<name>cookie</name>
+<value>JSESSIONID=12A6E6D37D43696DAB152A389F3B65F4; nde-textsize=16px; Country=US; Language=en</value>
+</header>
+<header>
+<name>host</name>
+<value>localhost:8080</value>
+</header>
+<header>
+<name>keep-alive</name>
+<value>300</value>
+</header>
+<header>
+<name>user-agent</name>
+<value>Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051107 Firefox/1.5</value>
+</header>
+</headers>
+</request>
+<response>
+<statusCode>200</statusCode>
+<reason></reason>
+<responseBody>
+<![CDATA[<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+	"http://www.w3.org/TR/html4/loose.dtd">
+<html lang="en">
+
+    <head>
+        <base href="http://localhost:8080/coreWeb/miniTests/initStrutsActionForm/index.jsp">
+    </head>
+    <body>
+        <h3>/miniTests/initStrutsActionForm/Controller.jpf</h3>
+
+        This test ensures that you can use the expected Struts request attribute to access a
+        Struts ActionForm that has been passed to the page (and that the bean is not wrapped in an
+        AnyBeanActionForm).
+
+        <br/>
+        <br/>
+        myForm class: <b>miniTests.initStrutsActionForm.Controller$MyForm</b>
+
+        <br/>
+        <br/>
+        <form action="/coreWeb/miniTests/initStrutsActionForm/submit.do" method="post">
+            foo: <input type="text" name="{actionForm.foo}" value="init val">
+        </form>
+    </body>
+
+</html>]]>
+</responseBody>
+</response>
+</test>
+</tests>
+<endDate>14 Nov 2005, 11:06:50.786 AM MST</endDate>
+<testCount>1</testCount>
+</recorderSession>

Propchange: beehive/trunk/netui/test/webapps/drt/testRecorder/tests/InitStrutsActionForm.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: beehive/trunk/netui/test/webapps/drt/testRecorder/tests/MiscJpfTest13.xml
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/MiscJpfTest13.xml?rev=344179&r1=344178&r2=344179&view=diff
==============================================================================
--- beehive/trunk/netui/test/webapps/drt/testRecorder/tests/MiscJpfTest13.xml (original)
+++ beehive/trunk/netui/test/webapps/drt/testRecorder/tests/MiscJpfTest13.xml Mon Nov 14 10:39:21 2005
@@ -224,7 +224,7 @@
       <hr width="95%"/>
       <br/>
       <center>
-         <h4>Validation Error(s)</h4><ul><li>Please enter your address.  It's required.<li>Please enter your sex.  It's required.</ul><hr>
+         <li>Please enter your address.  It's required.<li>Please enter your sex.  It's required.
       </center>
 
       <form name="submitForm" method="post" action="/coreWeb/miscJpf/test13/submit.do">
@@ -368,7 +368,7 @@
       <hr width="95%"/>
       <br/>
       <center>
-         <h4>Validation Error(s)</h4><ul><li>Please enter your sex.  It's required.</ul><hr>
+         <li>Please enter your sex.  It's required.
       </center>
 
       <form name="submitForm" method="post" action="/coreWeb/miscJpf/test13/submit.do">
@@ -880,4 +880,4 @@
    </ses:tests>
    <ses:endDate>13 Dec 2004, 01:15:01.552 AM MST</ses:endDate>
    <ses:testCount>6</ses:testCount>
-</ses:recorderSession>
\ No newline at end of file
+</ses:recorderSession>

Added: beehive/trunk/netui/test/webapps/drt/testRecorder/tests/MissingActionOutput.xml
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/MissingActionOutput.xml?rev=344179&view=auto
==============================================================================
--- beehive/trunk/netui/test/webapps/drt/testRecorder/tests/MissingActionOutput.xml (added)
+++ beehive/trunk/netui/test/webapps/drt/testRecorder/tests/MissingActionOutput.xml Mon Nov 14 10:39:21 2005
@@ -0,0 +1,319 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<recorderSession xmlns="http://beehive.apache.org/netui/tools/testrecorder/2004/session">
+<sessionName>MissingActionOutput</sessionName>
+<tester>rich</tester>
+<startDate>10 Nov 2005, 04:17:57.542 PM MST</startDate>
+<description>Test to ensure that the correct exceptions are thrown for missing action output (MissingActionOutputException) and null action output (NullActionOutputException).</description>
+<tests>
+<test>
+<testNumber>1</testNumber>
+<request>
+<protocol>HTTP</protocol>
+<protocolVersion>1.1</protocolVersion>
+<host>localhost</host>
+<port>8080</port>
+<uri>/coreWeb/pageFlowCore/missingActionOutput/Controller.jpf</uri>
+<method>GET</method>
+<parameters>
+</parameters>
+<cookies>
+<cookie>
+<name>JSESSIONID</name>
+<value>4D051D5CD989BAC934BC74D5661260A8</value>
+</cookie>
+<cookie>
+<name>nde-textsize</name>
+<value>16px</value>
+</cookie>
+<cookie>
+<name>Country</name>
+<value>US</value>
+</cookie>
+<cookie>
+<name>Language</name>
+<value>en</value>
+</cookie>
+</cookies>
+<headers>
+<header>
+<name>accept</name>
+<value>text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5</value>
+</header>
+<header>
+<name>accept-charset</name>
+<value>ISO-8859-1,utf-8;q=0.7,*;q=0.7</value>
+</header>
+<header>
+<name>accept-encoding</name>
+<value>gzip,deflate</value>
+</header>
+<header>
+<name>accept-language</name>
+<value>en-us,en;q=0.7,ja;q=0.3</value>
+</header>
+<header>
+<name>connection</name>
+<value>keep-alive</value>
+</header>
+<header>
+<name>cookie</name>
+<value>JSESSIONID=4D051D5CD989BAC934BC74D5661260A8; nde-textsize=16px; Country=US; Language=en</value>
+</header>
+<header>
+<name>host</name>
+<value>localhost:8080</value>
+</header>
+<header>
+<name>keep-alive</name>
+<value>300</value>
+</header>
+<header>
+<name>user-agent</name>
+<value>Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051107 Firefox/1.5</value>
+</header>
+</headers>
+</request>
+<response>
+<statusCode>200</statusCode>
+<reason></reason>
+<responseBody>
+<![CDATA[<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+	"http://www.w3.org/TR/html4/loose.dtd">
+<html lang="en">
+
+    <head>
+        <base href="http://localhost:8080/coreWeb/pageFlowCore/missingActionOutput/index.jsp">
+    </head>
+    <body>
+        <h3>/pageFlowCore/missingActionOutput/Controller.jpf</h3>
+
+        This test ensures that the correct exceptions are thrown for missing action output
+        (MissingActionOutputException) and null action output (NullActionOutputException).
+
+        <br/>
+        <br/>
+        exception: 
+
+        <br/>
+        <br/>
+        <a href="/coreWeb/pageFlowCore/missingActionOutput/missingActionOutput.do">missingActionOutput</a>
+        <br/>
+        <a href="/coreWeb/pageFlowCore/missingActionOutput/nullActionOutput.do">nullActionOutput</a>
+    </body>
+
+</html>]]>
+</responseBody>
+</response>
+</test>
+<test>
+<testNumber>2</testNumber>
+<request>
+<protocol>HTTP</protocol>
+<protocolVersion>1.1</protocolVersion>
+<host>localhost</host>
+<port>8080</port>
+<uri>/coreWeb/pageFlowCore/missingActionOutput/missingActionOutput.do</uri>
+<method>GET</method>
+<parameters>
+</parameters>
+<cookies>
+<cookie>
+<name>JSESSIONID</name>
+<value>4D051D5CD989BAC934BC74D5661260A8</value>
+</cookie>
+<cookie>
+<name>nde-textsize</name>
+<value>16px</value>
+</cookie>
+<cookie>
+<name>Country</name>
+<value>US</value>
+</cookie>
+<cookie>
+<name>Language</name>
+<value>en</value>
+</cookie>
+</cookies>
+<headers>
+<header>
+<name>accept</name>
+<value>text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5</value>
+</header>
+<header>
+<name>accept-charset</name>
+<value>ISO-8859-1,utf-8;q=0.7,*;q=0.7</value>
+</header>
+<header>
+<name>accept-encoding</name>
+<value>gzip,deflate</value>
+</header>
+<header>
+<name>accept-language</name>
+<value>en-us,en;q=0.7,ja;q=0.3</value>
+</header>
+<header>
+<name>connection</name>
+<value>keep-alive</value>
+</header>
+<header>
+<name>cookie</name>
+<value>JSESSIONID=4D051D5CD989BAC934BC74D5661260A8; nde-textsize=16px; Country=US; Language=en</value>
+</header>
+<header>
+<name>host</name>
+<value>localhost:8080</value>
+</header>
+<header>
+<name>keep-alive</name>
+<value>300</value>
+</header>
+<header>
+<name>referer</name>
+<value>http://localhost:8080/coreWeb/pageFlowCore/missingActionOutput/Controller.jpf</value>
+</header>
+<header>
+<name>user-agent</name>
+<value>Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051107 Firefox/1.5</value>
+</header>
+</headers>
+</request>
+<response>
+<statusCode>200</statusCode>
+<reason></reason>
+<responseBody>
+<![CDATA[<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+	"http://www.w3.org/TR/html4/loose.dtd">
+<html lang="en">
+
+    <head>
+        <base href="http://localhost:8080/coreWeb/pageFlowCore/missingActionOutput/index.jsp">
+    </head>
+    <body>
+        <h3>/pageFlowCore/missingActionOutput/Controller.jpf</h3>
+
+        This test ensures that the correct exceptions are thrown for missing action output
+        (MissingActionOutputException) and null action output (NullActionOutputException).
+
+        <br/>
+        <br/>
+        exception: org.apache.beehive.netui.pageflow.MissingActionOutputException: The required action output "foo" was not present on forward "index" (action missingActionOutput in Page Flow /pageFlowCore/missingActionOutput/Controller.jpf).
+
+        <br/>
+        <br/>
+        <a href="/coreWeb/pageFlowCore/missingActionOutput/missingActionOutput.do">missingActionOutput</a>
+        <br/>
+        <a href="/coreWeb/pageFlowCore/missingActionOutput/nullActionOutput.do">nullActionOutput</a>
+    </body>
+
+</html>]]>
+</responseBody>
+</response>
+</test>
+<test>
+<testNumber>3</testNumber>
+<request>
+<protocol>HTTP</protocol>
+<protocolVersion>1.1</protocolVersion>
+<host>localhost</host>
+<port>8080</port>
+<uri>/coreWeb/pageFlowCore/missingActionOutput/nullActionOutput.do</uri>
+<method>GET</method>
+<parameters>
+</parameters>
+<cookies>
+<cookie>
+<name>JSESSIONID</name>
+<value>4D051D5CD989BAC934BC74D5661260A8</value>
+</cookie>
+<cookie>
+<name>nde-textsize</name>
+<value>16px</value>
+</cookie>
+<cookie>
+<name>Country</name>
+<value>US</value>
+</cookie>
+<cookie>
+<name>Language</name>
+<value>en</value>
+</cookie>
+</cookies>
+<headers>
+<header>
+<name>accept</name>
+<value>text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5</value>
+</header>
+<header>
+<name>accept-charset</name>
+<value>ISO-8859-1,utf-8;q=0.7,*;q=0.7</value>
+</header>
+<header>
+<name>accept-encoding</name>
+<value>gzip,deflate</value>
+</header>
+<header>
+<name>accept-language</name>
+<value>en-us,en;q=0.7,ja;q=0.3</value>
+</header>
+<header>
+<name>connection</name>
+<value>keep-alive</value>
+</header>
+<header>
+<name>cookie</name>
+<value>JSESSIONID=4D051D5CD989BAC934BC74D5661260A8; nde-textsize=16px; Country=US; Language=en</value>
+</header>
+<header>
+<name>host</name>
+<value>localhost:8080</value>
+</header>
+<header>
+<name>keep-alive</name>
+<value>300</value>
+</header>
+<header>
+<name>referer</name>
+<value>http://localhost:8080/coreWeb/pageFlowCore/missingActionOutput/missingActionOutput.do</value>
+</header>
+<header>
+<name>user-agent</name>
+<value>Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051107 Firefox/1.5</value>
+</header>
+</headers>
+</request>
+<response>
+<statusCode>200</statusCode>
+<reason></reason>
+<responseBody>
+<![CDATA[<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+	"http://www.w3.org/TR/html4/loose.dtd">
+<html lang="en">
+
+    <head>
+        <base href="http://localhost:8080/coreWeb/pageFlowCore/missingActionOutput/index.jsp">
+    </head>
+    <body>
+        <h3>/pageFlowCore/missingActionOutput/Controller.jpf</h3>
+
+        This test ensures that the correct exceptions are thrown for missing action output
+        (MissingActionOutputException) and null action output (NullActionOutputException).
+
+        <br/>
+        <br/>
+        exception: org.apache.beehive.netui.pageflow.NullActionOutputException: The required action output "foo" was null on forward "index" (action nullActionOutput in Page Flow /pageFlowCore/missingActionOutput/Controller.jpf).
+
+        <br/>
+        <br/>
+        <a href="/coreWeb/pageFlowCore/missingActionOutput/missingActionOutput.do">missingActionOutput</a>
+        <br/>
+        <a href="/coreWeb/pageFlowCore/missingActionOutput/nullActionOutput.do">nullActionOutput</a>
+    </body>
+
+</html>]]>
+</responseBody>
+</response>
+</test>
+</tests>
+<endDate>10 Nov 2005, 04:18:17.370 PM MST</endDate>
+<testCount>3</testCount>
+</recorderSession>

Propchange: beehive/trunk/netui/test/webapps/drt/testRecorder/tests/MissingActionOutput.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: beehive/trunk/netui/test/webapps/drt/testRecorder/tests/ValidateStrutsActionForm.xml
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/ValidateStrutsActionForm.xml?rev=344179&r1=344178&r2=344179&view=diff
==============================================================================
--- beehive/trunk/netui/test/webapps/drt/testRecorder/tests/ValidateStrutsActionForm.xml (original)
+++ beehive/trunk/netui/test/webapps/drt/testRecorder/tests/ValidateStrutsActionForm.xml Mon Nov 14 10:39:21 2005
@@ -1,69 +1,83 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<ses:recorderSession xmlns:ses="http://beehive.apache.org/netui/tools/testrecorder/2004/session">
-   <ses:sessionName>ValidateStrutsActionForm</ses:sessionName>
-   <ses:tester>rich</ses:tester>
-   <ses:startDate>04 May 2005, 01:45:37.961 PM MDT</ses:startDate>
-   <ses:description>Test of validation annotations on a Struts ActionForm.</ses:description>
-   <ses:tests>
-      <ses:test>
-         <ses:testNumber>1</ses:testNumber>
-         <ses:request>
-            <ses:protocol>HTTP</ses:protocol>
-            <ses:protocolVersion>1.1</ses:protocolVersion>
-            <ses:host>localhost</ses:host>
-            <ses:port>8080</ses:port>
-            <ses:uri>/coreWeb/validation/validateStrutsActionForm/Controller.jpf</ses:uri>
-            <ses:method>GET</ses:method>
-            <ses:parameters/>
-            <ses:cookies>
-               <ses:cookie>
-                  <ses:name>JSESSIONID</ses:name>
-                  <ses:value>43044D260E25E74CA27282E78DDFC59F</ses:value>
-               </ses:cookie>
-            </ses:cookies>
-            <ses:headers>
-               <ses:header>
-                  <ses:name>accept</ses:name>
-                  <ses:value>text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5</ses:value>
-               </ses:header>
-               <ses:header>
-                  <ses:name>accept-charset</ses:name>
-                  <ses:value>ISO-8859-1,utf-8;q=0.7,*;q=0.7</ses:value>
-               </ses:header>
-               <ses:header>
-                  <ses:name>accept-encoding</ses:name>
-                  <ses:value>gzip,deflate</ses:value>
-               </ses:header>
-               <ses:header>
-                  <ses:name>accept-language</ses:name>
-                  <ses:value>en-us,en;q=0.5</ses:value>
-               </ses:header>
-               <ses:header>
-                  <ses:name>connection</ses:name>
-                  <ses:value>keep-alive</ses:value>
-               </ses:header>
-               <ses:header>
-                  <ses:name>cookie</ses:name>
-                  <ses:value>JSESSIONID=43044D260E25E74CA27282E78DDFC59F</ses:value>
-               </ses:header>
-               <ses:header>
-                  <ses:name>host</ses:name>
-                  <ses:value>localhost:8080</ses:value>
-               </ses:header>
-               <ses:header>
-                  <ses:name>keep-alive</ses:name>
-                  <ses:value>300</ses:value>
-               </ses:header>
-               <ses:header>
-                  <ses:name>user-agent</ses:name>
-                  <ses:value>Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3</ses:value>
-               </ses:header>
-            </ses:headers>
-         </ses:request>
-         <ses:response>
-            <ses:statusCode>200</ses:statusCode>
-            <ses:reason/>
-            <ses:responseBody><![CDATA[<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+<recorderSession xmlns="http://beehive.apache.org/netui/tools/testrecorder/2004/session">
+<sessionName>ValidateStrutsActionForm</sessionName>
+<tester>rich</tester>
+<startDate>11 Nov 2005, 05:08:21.536 PM MST</startDate>
+<description>Test to ensure that declarative validation annotations (including form-bean-specific message resources) works correctly on beans that extend the raw Struts ActionForm.</description>
+<tests>
+<test>
+<testNumber>1</testNumber>
+<request>
+<protocol>HTTP</protocol>
+<protocolVersion>1.1</protocolVersion>
+<host>localhost</host>
+<port>8080</port>
+<uri>/coreWeb/validation/validateStrutsActionForm/Controller.jpf</uri>
+<method>GET</method>
+<parameters>
+</parameters>
+<cookies>
+<cookie>
+<name>JSESSIONID</name>
+<value>6B28849315E37E718BCB2F46DCFD9B02</value>
+</cookie>
+<cookie>
+<name>nde-textsize</name>
+<value>16px</value>
+</cookie>
+<cookie>
+<name>Country</name>
+<value>US</value>
+</cookie>
+<cookie>
+<name>Language</name>
+<value>en</value>
+</cookie>
+</cookies>
+<headers>
+<header>
+<name>accept</name>
+<value>text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5</value>
+</header>
+<header>
+<name>accept-charset</name>
+<value>ISO-8859-1,utf-8;q=0.7,*;q=0.7</value>
+</header>
+<header>
+<name>accept-encoding</name>
+<value>gzip,deflate</value>
+</header>
+<header>
+<name>accept-language</name>
+<value>en-us,en;q=0.7,ja;q=0.3</value>
+</header>
+<header>
+<name>connection</name>
+<value>keep-alive</value>
+</header>
+<header>
+<name>cookie</name>
+<value>JSESSIONID=6B28849315E37E718BCB2F46DCFD9B02; nde-textsize=16px; Country=US; Language=en</value>
+</header>
+<header>
+<name>host</name>
+<value>localhost:8080</value>
+</header>
+<header>
+<name>keep-alive</name>
+<value>300</value>
+</header>
+<header>
+<name>user-agent</name>
+<value>Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051107 Firefox/1.5</value>
+</header>
+</headers>
+</request>
+<response>
+<statusCode>200</statusCode>
+<reason></reason>
+<responseBody>
+<![CDATA[<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
 	"http://www.w3.org/TR/html4/loose.dtd">
 <html lang="en">
 
@@ -73,8 +87,10 @@
     <body>
         <h3>/validation/validateStrutsActionForm/Controller.jpf</h3>
 
-        <a href="/coreWeb/validation/validateStrutsActionForm/begin.do">begin</a>
-
+        This test ensures that declarative validation annotations (including form-bean-specific
+        message resources) works correctly on beans that extend the raw Struts ActionForm.
+        <br/>
+        <br/>
         <form action="/coreWeb/validation/validateStrutsActionForm/submit.do" method="post">
             foo: <input type="text" name="{actionForm.foo}">
             <br/>
@@ -82,85 +98,99 @@
         </form>
     </body>
 
-</html>]]></ses:responseBody>
-         </ses:response>
-      </ses:test>
-      <ses:test>
-         <ses:testNumber>2</ses:testNumber>
-         <ses:request>
-            <ses:protocol>HTTP</ses:protocol>
-            <ses:protocolVersion>1.1</ses:protocolVersion>
-            <ses:host>localhost</ses:host>
-            <ses:port>8080</ses:port>
-            <ses:uri>/coreWeb/validation/validateStrutsActionForm/submit.do</ses:uri>
-            <ses:method>POST</ses:method>
-            <ses:parameters>
-               <ses:parameter>
-                  <ses:name>{actionForm.foo}</ses:name>
-                  <ses:value/>
-               </ses:parameter>
-            </ses:parameters>
-            <ses:cookies>
-               <ses:cookie>
-                  <ses:name>JSESSIONID</ses:name>
-                  <ses:value>43044D260E25E74CA27282E78DDFC59F</ses:value>
-               </ses:cookie>
-            </ses:cookies>
-            <ses:headers>
-               <ses:header>
-                  <ses:name>accept</ses:name>
-                  <ses:value>text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5</ses:value>
-               </ses:header>
-               <ses:header>
-                  <ses:name>accept-charset</ses:name>
-                  <ses:value>ISO-8859-1,utf-8;q=0.7,*;q=0.7</ses:value>
-               </ses:header>
-               <ses:header>
-                  <ses:name>accept-encoding</ses:name>
-                  <ses:value>gzip,deflate</ses:value>
-               </ses:header>
-               <ses:header>
-                  <ses:name>accept-language</ses:name>
-                  <ses:value>en-us,en;q=0.5</ses:value>
-               </ses:header>
-               <ses:header>
-                  <ses:name>connection</ses:name>
-                  <ses:value>keep-alive</ses:value>
-               </ses:header>
-               <ses:header>
-                  <ses:name>content-length</ses:name>
-                  <ses:value>21</ses:value>
-               </ses:header>
-               <ses:header>
-                  <ses:name>content-type</ses:name>
-                  <ses:value>application/x-www-form-urlencoded</ses:value>
-               </ses:header>
-               <ses:header>
-                  <ses:name>cookie</ses:name>
-                  <ses:value>JSESSIONID=43044D260E25E74CA27282E78DDFC59F</ses:value>
-               </ses:header>
-               <ses:header>
-                  <ses:name>host</ses:name>
-                  <ses:value>localhost:8080</ses:value>
-               </ses:header>
-               <ses:header>
-                  <ses:name>keep-alive</ses:name>
-                  <ses:value>300</ses:value>
-               </ses:header>
-               <ses:header>
-                  <ses:name>referer</ses:name>
-                  <ses:value>http://localhost:8080/coreWeb/validation/validateStrutsActionForm/Controller.jpf</ses:value>
-               </ses:header>
-               <ses:header>
-                  <ses:name>user-agent</ses:name>
-                  <ses:value>Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3</ses:value>
-               </ses:header>
-            </ses:headers>
-         </ses:request>
-         <ses:response>
-            <ses:statusCode>200</ses:statusCode>
-            <ses:reason/>
-            <ses:responseBody><![CDATA[<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+</html>]]>
+</responseBody>
+</response>
+</test>
+<test>
+<testNumber>2</testNumber>
+<request>
+<protocol>HTTP</protocol>
+<protocolVersion>1.1</protocolVersion>
+<host>localhost</host>
+<port>8080</port>
+<uri>/coreWeb/validation/validateStrutsActionForm/submit.do</uri>
+<method>POST</method>
+<parameters>
+<parameter>
+<name>{actionForm.foo}</name>
+<value></value>
+</parameter>
+</parameters>
+<cookies>
+<cookie>
+<name>JSESSIONID</name>
+<value>6B28849315E37E718BCB2F46DCFD9B02</value>
+</cookie>
+<cookie>
+<name>nde-textsize</name>
+<value>16px</value>
+</cookie>
+<cookie>
+<name>Country</name>
+<value>US</value>
+</cookie>
+<cookie>
+<name>Language</name>
+<value>en</value>
+</cookie>
+</cookies>
+<headers>
+<header>
+<name>accept</name>
+<value>text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5</value>
+</header>
+<header>
+<name>accept-charset</name>
+<value>ISO-8859-1,utf-8;q=0.7,*;q=0.7</value>
+</header>
+<header>
+<name>accept-encoding</name>
+<value>gzip,deflate</value>
+</header>
+<header>
+<name>accept-language</name>
+<value>en-us,en;q=0.7,ja;q=0.3</value>
+</header>
+<header>
+<name>connection</name>
+<value>keep-alive</value>
+</header>
+<header>
+<name>content-length</name>
+<value>21</value>
+</header>
+<header>
+<name>content-type</name>
+<value>application/x-www-form-urlencoded</value>
+</header>
+<header>
+<name>cookie</name>
+<value>JSESSIONID=6B28849315E37E718BCB2F46DCFD9B02; nde-textsize=16px; Country=US; Language=en</value>
+</header>
+<header>
+<name>host</name>
+<value>localhost:8080</value>
+</header>
+<header>
+<name>keep-alive</name>
+<value>300</value>
+</header>
+<header>
+<name>referer</name>
+<value>http://localhost:8080/coreWeb/validation/validateStrutsActionForm/Controller.jpf</value>
+</header>
+<header>
+<name>user-agent</name>
+<value>Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051107 Firefox/1.5</value>
+</header>
+</headers>
+</request>
+<response>
+<statusCode>200</statusCode>
+<reason></reason>
+<responseBody>
+<![CDATA[<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
 	"http://www.w3.org/TR/html4/loose.dtd">
 <html lang="en">
 
@@ -170,20 +200,137 @@
     <body>
         <h3>/validation/validateStrutsActionForm/Controller.jpf</h3>
 
-        <a href="/coreWeb/validation/validateStrutsActionForm/begin.do">begin</a>
+        This test ensures that declarative validation annotations (including form-bean-specific
+        message resources) works correctly on beans that extend the raw Struts ActionForm.
+        <br/>
+        <br/>
+        <form action="/coreWeb/validation/validateStrutsActionForm/submit.do" method="post">
+            foo: <input type="text" name="{actionForm.foo}">message from bean
+
+            <br/>
+            <input type="submit" value="submit">
+        </form>
+    </body>
+
+</html>]]>
+</responseBody>
+</response>
+</test>
+<test>
+<testNumber>3</testNumber>
+<request>
+<protocol>HTTP</protocol>
+<protocolVersion>1.1</protocolVersion>
+<host>localhost</host>
+<port>8080</port>
+<uri>/coreWeb/validation/validateStrutsActionForm/submit.do</uri>
+<method>POST</method>
+<parameters>
+<parameter>
+<name>{actionForm.foo}</name>
+<value>1</value>
+</parameter>
+</parameters>
+<cookies>
+<cookie>
+<name>JSESSIONID</name>
+<value>6B28849315E37E718BCB2F46DCFD9B02</value>
+</cookie>
+<cookie>
+<name>nde-textsize</name>
+<value>16px</value>
+</cookie>
+<cookie>
+<name>Country</name>
+<value>US</value>
+</cookie>
+<cookie>
+<name>Language</name>
+<value>en</value>
+</cookie>
+</cookies>
+<headers>
+<header>
+<name>accept</name>
+<value>text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5</value>
+</header>
+<header>
+<name>accept-charset</name>
+<value>ISO-8859-1,utf-8;q=0.7,*;q=0.7</value>
+</header>
+<header>
+<name>accept-encoding</name>
+<value>gzip,deflate</value>
+</header>
+<header>
+<name>accept-language</name>
+<value>en-us,en;q=0.7,ja;q=0.3</value>
+</header>
+<header>
+<name>connection</name>
+<value>keep-alive</value>
+</header>
+<header>
+<name>content-length</name>
+<value>22</value>
+</header>
+<header>
+<name>content-type</name>
+<value>application/x-www-form-urlencoded</value>
+</header>
+<header>
+<name>cookie</name>
+<value>JSESSIONID=6B28849315E37E718BCB2F46DCFD9B02; nde-textsize=16px; Country=US; Language=en</value>
+</header>
+<header>
+<name>host</name>
+<value>localhost:8080</value>
+</header>
+<header>
+<name>keep-alive</name>
+<value>300</value>
+</header>
+<header>
+<name>referer</name>
+<value>http://localhost:8080/coreWeb/validation/validateStrutsActionForm/submit.do</value>
+</header>
+<header>
+<name>user-agent</name>
+<value>Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051107 Firefox/1.5</value>
+</header>
+</headers>
+</request>
+<response>
+<statusCode>200</statusCode>
+<reason></reason>
+<responseBody>
+<![CDATA[<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+	"http://www.w3.org/TR/html4/loose.dtd">
+<html lang="en">
+
+    <head>
+        <base href="http://localhost:8080/coreWeb/validation/validateStrutsActionForm/index.jsp">
+    </head>
+    <body>
+        <h3>/validation/validateStrutsActionForm/Controller.jpf</h3>
 
+        This test ensures that declarative validation annotations (including form-bean-specific
+        message resources) works correctly on beans that extend the raw Struts ActionForm.
+        <br/>
+        <br/>
         <form action="/coreWeb/validation/validateStrutsActionForm/submit.do" method="post">
-            foo: <input type="text" name="{actionForm.foo}">did validation!
+            foo: <input type="text" name="{actionForm.foo}" value="1">message from action
 
             <br/>
             <input type="submit" value="submit">
         </form>
     </body>
 
-</html>]]></ses:responseBody>
-         </ses:response>
-      </ses:test>
-   </ses:tests>
-   <ses:endDate>04 May 2005, 01:45:55.416 PM MDT</ses:endDate>
-   <ses:testCount>2</ses:testCount>
-</ses:recorderSession>
+</html>]]>
+</responseBody>
+</response>
+</test>
+</tests>
+<endDate>11 Nov 2005, 05:08:33.434 PM MST</endDate>
+<testCount>3</testCount>
+</recorderSession>

Added: beehive/trunk/netui/test/webapps/drt/testRecorder/tests/_CheckNoProductionMode.xml
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/_CheckNoProductionMode.xml?rev=344179&view=auto
==============================================================================
--- beehive/trunk/netui/test/webapps/drt/testRecorder/tests/_CheckNoProductionMode.xml (added)
+++ beehive/trunk/netui/test/webapps/drt/testRecorder/tests/_CheckNoProductionMode.xml Mon Nov 14 10:39:21 2005
@@ -0,0 +1,95 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<recorderSession xmlns="http://beehive.apache.org/netui/tools/testrecorder/2004/session">
+<sessionName>_CheckNoProductionMode</sessionName>
+<tester>rich</tester>
+<startDate>10 Nov 2005, 04:15:47.565 PM MST</startDate>
+<description>Production mode must be false when running our automated tests; many of them depend this to display dev-mode error pages and the like.  This test ensures that.</description>
+<tests>
+<test>
+<testNumber>1</testNumber>
+<request>
+<protocol>HTTP</protocol>
+<protocolVersion>1.1</protocolVersion>
+<host>localhost</host>
+<port>8080</port>
+<uri>/coreWeb/checkNoProductionMode.jsp</uri>
+<method>GET</method>
+<parameters>
+</parameters>
+<cookies>
+<cookie>
+<name>JSESSIONID</name>
+<value>4D051D5CD989BAC934BC74D5661260A8</value>
+</cookie>
+<cookie>
+<name>nde-textsize</name>
+<value>16px</value>
+</cookie>
+<cookie>
+<name>Country</name>
+<value>US</value>
+</cookie>
+<cookie>
+<name>Language</name>
+<value>en</value>
+</cookie>
+</cookies>
+<headers>
+<header>
+<name>accept</name>
+<value>text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5</value>
+</header>
+<header>
+<name>accept-charset</name>
+<value>ISO-8859-1,utf-8;q=0.7,*;q=0.7</value>
+</header>
+<header>
+<name>accept-encoding</name>
+<value>gzip,deflate</value>
+</header>
+<header>
+<name>accept-language</name>
+<value>en-us,en;q=0.7,ja;q=0.3</value>
+</header>
+<header>
+<name>connection</name>
+<value>keep-alive</value>
+</header>
+<header>
+<name>cookie</name>
+<value>JSESSIONID=4D051D5CD989BAC934BC74D5661260A8; nde-textsize=16px; Country=US; Language=en</value>
+</header>
+<header>
+<name>host</name>
+<value>localhost:8080</value>
+</header>
+<header>
+<name>keep-alive</name>
+<value>300</value>
+</header>
+<header>
+<name>user-agent</name>
+<value>Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051107 Firefox/1.5</value>
+</header>
+</headers>
+</request>
+<response>
+<statusCode>200</statusCode>
+<reason></reason>
+<responseBody>
+<![CDATA[<html>
+    <body>
+        in production mode: <b>false</b>
+        <br/>
+        <br/>
+        Production mode must be <code>false</code> when running our automated tests; many of them
+        depend this to display dev-mode error pages and the like.
+    </body>
+</html>]]>
+</responseBody>
+</response>
+</test>
+</tests>
+<endDate>10 Nov 2005, 04:16:02.006 PM MST</endDate>
+<testCount>1</testCount>
+</recorderSession>

Propchange: beehive/trunk/netui/test/webapps/drt/testRecorder/tests/_CheckNoProductionMode.xml
------------------------------------------------------------------------------
    svn:eol-style = native