You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by cr...@apache.org on 2001/06/14 00:14:30 UTC
cvs commit: jakarta-struts/src/share/org/apache/struts/action ActionForm.java
craigmcc 01/06/13 15:14:30
Modified: src/share/org/apache/struts/action Tag: STRUTS_1_0_BRANCH
ActionForm.java
Log:
Make the instance variables of ActionForm transient so that they can
actually be serialized (as implied by the fact that ActionForm implements
Serializable). Note that if you ever deserialize such an ActionForm bean,
you will need to call setServlet() and possibly
setMultipartRequestHandler() to re-establish the appropriate connections.
Submitted by: Ian Kallen <ia...@covalent.net>
Revision Changes Path
No revision
No revision
1.7.2.1 +6 -6 jakarta-struts/src/share/org/apache/struts/action/ActionForm.java
Index: ActionForm.java
===================================================================
RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/action/ActionForm.java,v
retrieving revision 1.7
retrieving revision 1.7.2.1
diff -u -r1.7 -r1.7.2.1
--- ActionForm.java 2001/05/11 17:10:58 1.7
+++ ActionForm.java 2001/06/13 22:14:26 1.7.2.1
@@ -1,7 +1,7 @@
/*
- * $Header: /home/cvs/jakarta-struts/src/share/org/apache/struts/action/ActionForm.java,v 1.7 2001/05/11 17:10:58 mschachter Exp $
- * $Revision: 1.7 $
- * $Date: 2001/05/11 17:10:58 $
+ * $Header: /home/cvs/jakarta-struts/src/share/org/apache/struts/action/ActionForm.java,v 1.7.2.1 2001/06/13 22:14:26 craigmcc Exp $
+ * $Revision: 1.7.2.1 $
+ * $Date: 2001/06/13 22:14:26 $
*
* ====================================================================
*
@@ -94,7 +94,7 @@
* </p>
*
* @author Craig R. McClanahan
- * @version $Revision: 1.7 $ $Date: 2001/05/11 17:10:58 $
+ * @version $Revision: 1.7.2.1 $ $Date: 2001/06/13 22:14:26 $
*/
public abstract class ActionForm implements Serializable {
@@ -106,14 +106,14 @@
/**
* The controller servlet instance to which we are attached.
*/
- protected ActionServlet servlet = null;
+ protected transient ActionServlet servlet = null;
/**
* The MultipartRequestHandler for this form, can be
* <code>null</code>
*/
- protected MultipartRequestHandler multipartRequestHandler;
+ protected transient MultipartRequestHandler multipartRequestHandler;
// ------------------------------------------------------------- Properties