craigmcc 2002/07/27 11:55:57 Modified: . STATUS src/share/org/apache/struts/util RequestUtils.java web/example/WEB-INF struts-config.xml Log: Correct recycling of DynaActionForm beans in session scope. Previously, and DynaActionForm subclass that was stored under the same session attribute key would be used -- now it needs to be a DynaActionForm for the requested form bean name. PR: Bugzilla #10979 Submitted by: Gen Kagawa <kagawa at sun12.tis.co.jp> Revision Changes Path 1.41 +1 -2 jakarta-struts/STATUS Index: STATUS =================================================================== RCS file: /home/cvs/jakarta-struts/STATUS,v retrieving revision 1.40 retrieving revision 1.41 diff -u -r1.40 -r1.41 --- STATUS 25 Jul 2002 00:53:45 -0000 1.40 +++ STATUS 27 Jul 2002 18:55:56 -0000 1.41 @@ -43,7 +43,6 @@ ---------------- 10322 Problems with LookupDispatchAction and other locales 10953 sub-application loses message resource -10979 DynaActionForm in session losts datas. Tiles Framework: 1.50 +5 -5 jakarta-struts/src/share/org/apache/struts/util/RequestUtils.java Index: RequestUtils.java =================================================================== RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/util/RequestUtils.java,v retrieving revision 1.49 retrieving revision 1.50 diff -u -r1.49 -r1.50 --- RequestUtils.java 24 Jul 2002 13:01:46 -0000 1.49 +++ RequestUtils.java 27 Jul 2002 18:55:56 -0000 1.50 @@ -568,7 +568,7 @@ if (config.getDynamic()) { String className = ((DynaBean) instance).getDynaClass().getName(); - if (className.equals(config.getType())) { + if (className.equals(config.getName())) { if (LOG.isDebugEnabled()) { LOG.debug (" Recycling existing DynaActionForm instance " + 1.25 +1 -1 jakarta-struts/web/example/WEB-INF/struts-config.xml Index: struts-config.xml =================================================================== RCS file: /home/cvs/jakarta-struts/web/example/WEB-INF/struts-config.xml,v retrieving revision 1.24 retrieving revision 1.25 diff -u -r1.24 -r1.25 --- struts-config.xml 14 Jul 2002 01:35:18 -0000 1.24 +++ struts-config.xml 27 Jul 2002 18:55:57 -0000 1.25 @@ -113,7 +113,7 @@ <action path="/logon" type="org.apache.struts.webapp.example.LogonAction" name="logonForm" - scope="request" + scope="session" input="logon"> <exception key="expired.password"
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>