Re: ActionSupport implements Serializable

2022-03-16 Thread Lukasz Lenart
ś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

ActionSupport implements Serializable

2022-03-16 Thread Britta Katzenbach
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

Re: Why ActionSupport is Serializable?

2011-08-24 Thread Greg Lindholm
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

Why ActionSupport is Serializable?

2011-08-24 Thread Ilya Kazakevich
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

[OT] Re: only serializable objects into Session?

2008-08-26 Thread Dave Newton
--- 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

Re: only serializable objects into Session?

2008-08-26 Thread Roger
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

[OT] Re: only serializable objects into Session?

2008-08-25 Thread Dave Newton
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

Re: only serializable objects into Session?

2008-08-25 Thread Stephan Schröder
> > 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,

Re: only serializable objects into Session?

2008-08-25 Thread Dave Newton
--- 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

only serializable objects into Session?

2008-08-25 Thread Stephan Schröder
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

Re: serializable and exceptions

2008-02-14 Thread Randy Burgess
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

Re: serializable and exceptions

2008-02-14 Thread Brian Relph
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

Re: serializable and exceptions

2008-02-14 Thread Randy Burgess
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

serializable and exceptions

2008-02-14 Thread Brian Relph
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

[S2] Why Interceptors implements Serializable?

2007-09-26 Thread Gabriel Belingueres
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

Re: [S2] Should action class serializable?

2007-04-25 Thread wolverine my
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

Re: [S2] Should action class serializable?

2007-04-25 Thread Laurie Harper
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

RE: [S2] Should action class serializable?

2007-04-25 Thread Krishna, Hari \(FTT-CInternet\)
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

[S2] Should action class serializable?

2007-04-25 Thread wolverine my
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]

Re: FormFile throws Serializable exception in session scope

2006-03-01 Thread Niall Pemberton
> > 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

Re: FormFile throws Serializable exception in session scope

2006-03-01 Thread Joe Germuska
. > 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

Re: What should I do with serializable classes?

2005-12-12 Thread marcelo
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

What should I do with serializable classes?

2005-12-12 Thread Sebastian Stein
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

Re: FormFile throws Serializable exception in session scope

2005-11-10 Thread Ben
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

Re: FormFile throws Serializable exception in session scope

2005-11-10 Thread Laurie Harper
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&#x

FormFile throws Serializable exception in session scope

2005-11-09 Thread Ben
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

Re: Serializable

2005-09-30 Thread Tamas Szabo
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

Re: Serializable

2005-09-30 Thread Frank W. Zammetti
> 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

Re: Serializable

2005-09-30 Thread atta-ur rehman
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

Re: Serializable

2005-09-30 Thread Tamas Szabo
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

AW: Serializable

2005-09-30 Thread Martin Kindler
; 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

Re: Serializable

2005-09-30 Thread Leon Rosenberg
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

Serializable

2005-09-30 Thread Murray Collingwood
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

Re: Not serializable

2005-09-04 Thread amos
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

Not serializable

2005-09-04 Thread Murray Collingwood
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