ś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
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 c
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: 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
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
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: &q
> > 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,
--- 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 uns
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
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
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
00
> To: Struts Users Mailing List
> Subject: serializable and exceptions
>
> Hey everyone, I seem to be coming across two issues when running multiple
> jvms with session sharing ... i have not run into this during my previous
> testing, since i was not worried about a high-av
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
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?
Ga
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
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 seriali
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
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]
> > when I startup/shutdown Tomcat.
>
> ...
>
> > 2005-11-11 09:45:30,000 WARN
> > [ContainerBase.[Catalina].[localhost].[/]] - Cannot serialize session
> > attribute uploadForm for session 0556C80B681118276F9F2B02FEC497E0
> > java.io.NotSerializableExc
.
> 2005-11-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
DeferredFileOu
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
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
o 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 faili
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
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
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 implem
> 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-s
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 o
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
; An: Struts Users 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
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
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 outgoi
t this didn't seem to help.
> private static final long serialVersionUID = 2897987282761L;
>
> Any suggestions?
Add "implements Serializable" to the class declaration (it's an empty
"flag" interface)?
HTH,
--Amos
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;
A
35 matches
Mail list logo