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/10/13 23:08:26 UTC
svn commit: r320922 -
/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/config/PageFlowActionFormBean.java
Author: rich
Date: Thu Oct 13 14:08:21 2005
New Revision: 320922
URL: http://svn.apache.org/viewcvs?rev=320922&view=rev
Log:
Fixed a break I caused in the Struts 1.1 BVTs.
tests: bvt, bvt.struts11 in netui/test/webapps/drt (WinXP)
BB: same (linux)
Fixed a break I caused in the Struts 1.1 BVTs.
tests: bvt, bvt.struts11 in netui/test/webapps/drt (WinXP)
BB: same (linux)
Modified:
beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/config/PageFlowActionFormBean.java
Modified: beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/config/PageFlowActionFormBean.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/config/PageFlowActionFormBean.java?rev=320922&r1=320921&r2=320922&view=diff
==============================================================================
--- beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/config/PageFlowActionFormBean.java (original)
+++ beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/config/PageFlowActionFormBean.java Thu Oct 13 14:08:21 2005
@@ -21,7 +21,6 @@
import org.apache.struts.action.ActionFormBean;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionServlet;
-import org.apache.struts.validator.BeanValidatorForm;
import org.apache.beehive.netui.pageflow.handler.ReloadableClassHandler;
import org.apache.beehive.netui.pageflow.handler.Handlers;
import org.apache.beehive.netui.util.logging.Logger;
@@ -77,14 +76,8 @@
try {
ReloadableClassHandler rch = Handlers.get(servlet.getServletContext()).getReloadableClassHandler();
Object obj = rch.newInstance(getType());
-
- ActionForm form = null;
- if (obj instanceof ActionForm) {
- form = (ActionForm)obj;
- } else {
- form = new BeanValidatorForm(obj);
- }
-
+ assert obj instanceof ActionForm : obj.getClass().getName();
+ ActionForm form = (ActionForm) obj;
form.setServlet(servlet);
return form;
} catch (ClassNotFoundException e) {