craigmcc 2002/07/22 18:17:02
Modified: src/share/org/apache/struts/action ActionServlet.java
Log:
Ensure that all the configured dynamic form bean classes have been created
at startup time, so that DynaActionFormClass.getDynaActionFormClass() will
always work. As a side effect, this will catch problems with the specified
class name at webapp startup time instead of the first time this form bean
is requested.
Revision Changes Path
1.115 +13 -4
jakarta-struts/src/share/org/apache/struts/action/ActionServlet.java
Index: ActionServlet.java
===================================================================
RCS file:
/home/cvs/jakarta-struts/src/share/org/apache/struts/action/ActionServlet.java,v
retrieving revision 1.114
retrieving revision 1.115
diff -u -r1.114 -r1.115
--- ActionServlet.java 10 Jul 2002 14:52:46 -0000 1.114
+++ ActionServlet.java 23 Jul 2002 01:17:02 -0000 1.115
@@ -864,6 +864,15 @@
}
}
+ // Force creation and registration of DynaActionFormClass instances
+ // for all dynamic form beans we wil be using
+ FormBeanConfig fbs[] = config.findFormBeanConfigs();
+ for (int i = 0; i < fbs.length; i++) {
+ if (fbs[i].getDynamic()) {
+ DynaActionFormClass.createDynaActionFormClass(fbs[i]);
+ }
+ }
+
// Special handling for the default application module (for
// backwards compatibility only, will be removed later)
if (prefix.length() < 1) {
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>