I found a cluster related issue for ActionForms, which I reported a while 
ago, but I did not get any response. I would appreciate your opinion if you 
do further investigations.

For Uploads, Struts uses FormFile/DiskFile objects as the parameter of the 
ActionForm which is going to receive the source file. It happends that it is 
no serializable.

When the form is declared in session scope, my container (Websphere), 
attempts to persist it, and as it is not serializable throws an 
NonSerializableException.

It does not happend, fo course, when declared in request scope.

Any opinions are welcome?

Adolfo.


>From: "Molitor, Stephen" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
>Subject: ActionForms in session, in a clustered environment
>Date: Thu, 15 Aug 2002 13:18:53 -0500
>
>I have a question about the use of forms in session scope, in a clustered
>environment.  In a clustered environment, if you get someting from the
>session via session.getAttribute, and then modify that object, you have to
>call session.setAttribute to let the container know that the object has
>changed, so that it can replicate it across the cluster.  If one uses
>session scoped form beans, will session.setAttribute get called?  Looking 
>at
>the code in ActionServlet.processActionForm, it looks like it does.  But I
>just want to make sure that there aren't any cluster related issues one
>should be aware of.
>
>Steve Molitor
>[EMAIL PROTECTED]
>
>--
>To unsubscribe, e-mail:   
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><mailto:[EMAIL PROTECTED]>




<HTML>
      <HEAD>
             <TITLE>Adolfo's signature</TITLE>
      </HEAD>
      <BODY>
             <center><b><em>Adolfo Rodriguez Miguelez</em><b></center>

      </BODY>
      </HTML>





_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to