śr., 16 mar 2022 o 11:23 Britta Katzenbach napisał(a):
> Hi,
>
> Can you please explain why ActionSupport needs to be serializable?
Because you can put an action in HttpSession which accepts only
serializable classes - also ExecAndWait interceptor had been using
action this way, but as
Hi,
Can you please explain why ActionSupport needs to be serializable?
Thanks and best regards,
Britta
Britta Katzenbach
_
e-Mail: katzenb...@liwa.de
Dr. Lippke & Dr. Wagner GmbH
Nassauische Str. 25
10717 Berlin
Tel./Fax: +49 30 21473
Hello,
Why ActionSupport is Serializable?
Who wants to serialize the action?
Ilya Kazakevich,
Developer
JetBrains Inc
http://www.jetbrains.com
Develop with pleasure!
-
To unsubscribe, e-mail: user-unsubscr
I asked this question years ago and the answer I got was:
There is no reason it should be Serializable. It was originally
(mistakenly) created that way and because of compatibility it's too
late to change it now.
There is nothing magic about ActionSupport, you could always create
your own custom
On Monday 25 August 2008 16:48:27 Dave Newton wrote:
--- On Mon, 8/25/08, Stephan Schröder wrote:
This seems to indicate that all the objects reachable
through this object should be serializable, too?!
No, only the ones you want serialized.
I believe Servlet Containers such as Tomcat use
--- On Tue, 8/26/08, Roger wrote:
On Monday 25 August 2008 16:48:27 Dave Newton wrote:
--- On Mon, 8/25/08, Stephan Schröder wrote:
This seems to indicate that all the objects reachable
through this object should be serializable, too?!
No, only the ones you want serialized.
I
hi,
i read the other day that only Objects which implement Serializable should be
put into an HttpSession.
I gues this is valid for the Session in Struts2, too?!
This seems to indicate that all the objects reachable through this object
should be serializable, too?!
That would be a problem
--- On Mon, 8/25/08, Stephan Schröder wrote:
This seems to indicate that all the objects reachable
through this object should be serializable, too?!
No, only the ones you want serialized.
Dave
-
To unsubscribe, e-mail
This seems to indicate that all the objects reachable
through this object should be serializable, too?!
No, only the ones you want serialized.
So properties which don't implement Serializable will just be null afterwards?
What about Lists of nonserializable classes, will these be empty
http://java.sun.com/developer/technicalArticles/Programming/serialization/
--- On Mon, 8/25/08, Stephan Schröder [EMAIL PROTECTED] wrote:
From: Stephan Schröder [EMAIL PROTECTED]
Subject: Re: only serializable objects into Session?
To: Struts Users Mailing List user@struts.apache.org
Date
how the ModelDriven interface works, it just
made my ui code cleaner, and allowed me to group a bunch of fields outside
of my action. Anyways, i was wondering if changing the ModelDriven
interface to require the object to implement Serializable would make sense?
Because of this serializable
Yes, for my own objects, i am going to implement the serializable interface,
however, the xwork class, even if i were to rewrite/replace it, i would also
have to rewrite the interceptor to use the new object ...
On 2/14/08, Randy Burgess [EMAIL PROTECTED] wrote:
That would be the first thing I
I wonder if making your object implement serializable will have any affect
on the Xwork object. Have you tried to see what happens?
Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications
From: Brian Relph [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List user
Hi,
I've found intriguing that the Interceptor interface extends from Serializable.
Why is that? I mean, if interceptors need to be stateless then there
is no state to save/restore.
Or is it because they are stored in application scope?
Gabriel
I'm studying the org.apache.struts2.showcase.ajax.AjaxTestAction class
and found that it is serializable.
Why is this action class serializable?
What is the special things we have with a serialized action class?
On 4/26/07, Laurie Harper [EMAIL PROTECTED] wrote:
wolverine my wrote:
Hi
Hi!
How to decide if an Action class should be serializable or not?
Thank you!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
600020
| Tel: +91 44 24407000 | Extn: 17123 | Fax: +91 44 24453661 | Mobile:
+91 9884528587 | www.franklintempleton.com
-Original Message-
From: wolverine my [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 26, 2007 9:39 AM
To: struts-user
Subject: [S2] Should action class serializable?
Hi
wolverine my wrote:
Hi!
How to decide if an Action class should be serializable or not?
Thank you!
Action classes are instantiated per-request so, unless you're doing
anything special with the action instance in your own code, they don't
need to be serializable.
L
-11 09:45:30,000 WARN
[ContainerBase.[Catalina].[localhost].[/]] - Cannot serialize session
attribute uploadForm for session 0556C80B681118276F9F2B02FEC497E0
java.io.NotSerializableException:
org.apache.commons.fileupload.DeferredFileOutputStream
DeferredFileOutputStream is not serializable
[ContainerBase.[Catalina].[localhost].[/]] - Cannot serialize session
attribute uploadForm for session 0556C80B681118276F9F2B02FEC497E0
java.io.NotSerializableException:
org.apache.commons.fileupload.DeferredFileOutputStream
DeferredFileOutputStream is not serializable in commons-fileupload before
I have several classes derived either from ValidatorForm or ActionForm. Both
classes mark my derived class as serializable. I get a compiler warning
about a missing serialVersionUID.
Why are those classes serializable, because data transfered through a
network connection? How do I have to handle
Hi
I have several classes derived either from ValidatorForm or ActionForm.
Both
classes mark my derived class as serializable. I get a compiler warning
about a missing serialVersionUID.
Maybe you are using non-serializable attributes. Check out the
serializable guide in java's docs.
Why
Ben wrote:
Hi
Could someone please let me know how to make FormFile work in the
session scope? It always gives me Serializable exception.
I need to use FormFile in session scope.
FormFile is an interface, so I assume it's the particular implementation
you're working with that's failing
let me know how to make FormFile work in the
session scope? It always gives me Serializable exception.
I need to use FormFile in session scope.
FormFile is an interface, so I assume it's the particular implementation
you're working with that's failing to serialize. How have you configured
Hi
Could someone please let me know how to make FormFile work in the
session scope? It always gives me Serializable exception.
I need to use FormFile in session scope.
Thanks,
Ben
-
To unsubscribe, e-mail: [EMAIL PROTECTED
Just a quick question.
Does anybody follow any rule (personal or corporate) for when to use
implements
serializable on a Struts form-bean?
Kind regards
mc
FOCUS Computing
Mob: 0415 24 26 24
[EMAIL PROTECTED]
http://www.focus-computing.com.au
--
No virus found in this outgoing message
I wouldn't do it, unless you use distributed sessions. Having
serializable forms will cause tomcat to dump everything from the
session to a file, and reload it after restart. Unless you explicitely
want this (user-invisible restart, but then you need to make
EVERYTHING serializable) it makes
Mailing List
Betreff: Re: Serializable
I wouldn't do it, unless you use distributed sessions. Having
serializable forms will cause tomcat to dump everything from
the session to a file, and reload it after restart. Unless
you explicitely want this (user-invisible restart, but then
you
Hi,
But (this is OT): how do you stop Tomcat from doing so? I looked in the
Tomcat 5.0.x doc and just found nothing really helpful.
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/manager.html
If you want to stop Tomcat doing this for a webapp only
put a META-INF/context.xml in your
from:
http://java.sun.com/j2se/1.4.2/docs/api/java/io/Serializable.html
When traversing a graph, an object may be encountered that does not support
the Serializable interface. In this case the NotSerializableException will
be thrown and will identify the class of the non-serializable object
://java.sun.com/j2se/1.4.2/docs/api/java/io/Serializable.html
When traversing a graph, an object may be encountered that does not
support
the Serializable interface. In this case the NotSerializableException will
be thrown and will identify the class of the non-serializable object.
ATTA
On 9/30/05
On 9/30/05, Frank W. Zammetti [EMAIL PROTECTED] wrote:
I'm not sure it is a stupid question... I guess this enters the realm of
generic Java question, but I can't say I've ever thought about this
before... what happens if you have a class that implements serializable,
and you then extend
.
private static final long serialVersionUID = 2897987282761L;
Any suggestions?
Add implements Serializable to the class declaration (it's an empty
flag interface)?
HTH,
--Amos
-
To unsubscribe, e-mail: [EMAIL
Hi all
Caused by: java.io.NotSerializableException: com.bpx.website.model.User
I keep getting this error when I try putting a User bean into the session. I
tried adding a
versionUID to the class but this didn't seem to help.
private static final long serialVersionUID = 2897987282761L;
34 matches
Mail list logo