When attaching derived forms we have had the prob of struts not agreeing on the class-name of the form due to checking with getClass().getName().
After changing to the following you can let forms extend the others but keep them under the same name within the request. Udo -- tw systems, http://www.tw-systems.com it consulting phone: +49 6021 443 87 12 mobile: +49 172 789 09 40 fax: +49 6021 443 87 19
--- ActionServlet.java.old Fri Dec 14 11:30:41 2001 +++ ActionServlet.java.new Fri Dec 14 11:30:45 2001 @@ -1683,8 +1683,9 @@ return (null); // Can we recycle the existing form bean instance? - if ((instance != null) && - className.equals(instance.getClass().getName())) { + try { + Class clazz = Class.forName(className); + if ((instance != null) && clazz.isInstance(instance)) { if (debug >= 1) log(" Recycling existing ActionForm bean instance of class '" + className + "'"); @@ -1695,9 +1696,8 @@ if (debug >= 1) log(" Creating new ActionForm instance of class '" + className + "'"); - try { + instance = null; - Class clazz = Class.forName(className); instance = (ActionForm) clazz.newInstance(); } catch (Throwable t) { log("Error creating ActionForm instance of class '" +
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>