> Kind of depressing though... I'm trying to contribute, but so far all my ideas have
> been shot down (but for good reasons, so I'm not bitter about it). Just have to
> keep trying I suppose. :)
But you (and the rest of us) can learn something from the ensuing
discussion, even if your ideas ar
iran Chaudhuri
> > SAG Systemhaus GmbH
> > Elsenheimer Straße 11
> > 80867 München
> > Phone +49-89-54 74 21 34
> > Fax +49-89-54 74 21 99
> >
> >
> >
> >
> >
> >>-Original Message-
> >>From: Frank W. Zamm
er Straße 11
> > 80867 München
> > Phone +49-89-54 74 21 34
> > Fax +49-89-54 74 21 99
> >
> >
> >
> >
> >
> >>-Original Message-
> >>From: Paul Speed [mailto:[EMAIL PROTECTED]
> >>Sent: Donnerstag, 7. Oktobe
ED] Sent:
Donnerstag, 7. Oktober 2004 13:43
To: Struts Developers List
Subject: Re: Proposed Action base class change
Hi Niall,
I certainly agree it would not be possible to satisfy
everyone, but
seeing as the intrinsic toString() is all but useless
(and people do
generally expect that to be the c
; From: Paul Speed [mailto:[EMAIL PROTECTED]
> Sent: Donnerstag, 7. Oktober 2004 17:41
> To: Struts Developers List
> Subject: Re: Proposed Action base class change
>
> Bah! Realized after I hit send that you were talking about logging.
> Others have already pointed out how
7. Oktober 2004 17:39
> To: Struts Developers List
> Subject: Re: Proposed Action base class change
>
> I'd just like to point out that the only valid way to tell if
> two objects are the same instance if to use ==. Any other
> approach will not work.
>
> Comparing
lang/api/org/apache/commons/lang/bui
lder/package-summary.html
http://jakarta.apache.org/commons/lang/api/org/apache/commons/lang/bui
lder/ReflectionToStringBuilder.html
Niall
- Original Message -
From: "Frank W. Zammetti" <[EMAIL PROTECTED]>
To: "Struts Developer&quo
Original Message-
From: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
Sent: Donnerstag, 7. Oktober 2004 13:43
To: Struts Developers List
Subject: Re: Proposed Action base class change
Hi Niall,
I certainly agree it would not be possible to satisfy
everyone, but seeing as the intrinsic
49-89-54 74 21 34
Fax +49-89-54 74 21 99
> -Original Message-
> From: Mike Stanley [mailto:[EMAIL PROTECTED]
> Sent: Donnerstag, 7. Oktober 2004 15:06
> To: Struts Developers List
> Subject: RE: Proposed Action base class change
>
> wait a sec, I'm slig
Hiran Chaudhuri
> SAG Systemhaus GmbH
> Elsenheimer Straße 11
> 80867 München
> Phone +49-89-54 74 21 34
> Fax +49-89-54 74 21 99
>
>
>
>
> > -Original Message-
> > From: Mike Stanley [mailto:[EMAIL PROTECTED]
> > Sent: Donnerstag, 7. Okto
ess is printed.
> > > >
> > > > Unless you have another way to provide that information, I'd rather
> > > > stick with the default toString() plus some utility
> > > toString(Object)
> > > > method. The impact for you is not too much. W
ed it might be in commons-lang, but I could not find that either.
> >
> > Hiran
> >
> > -
> > Hiran Chaudhuri
> > SAG Systemhaus GmbH
> > Elsenheimer Straße 11
> > 80867 München
> > Phone +49-89-54 74
GmbH
Elsenheimer Straße 11
80867 München
Phone +49-89-54 74 21 34
Fax +49-89-54 74 21 99
> -Original Message-
> From: Mike Stanley [mailto:[EMAIL PROTECTED]
> Sent: Donnerstag, 7. Oktober 2004 14:41
> To: Struts Developers List
> Subject: RE: Proposed Action ba
impact for you is not too much. What you code so far is:
> > > log.debug("mybean="+mybean);
> > > and you'd have to change that to
> > > log.debug("mybean="+BeanUtil.toString(mybean));
> > > which will allow you to either
e to change that to
> > > log.debug("mybean="+BeanUtil.toString(mybean));
> > > which will allow you to either see the memory address or
> > the contents,
> > > whatever you prefer.
> > >
> > > Hiran
> > >
> > > -
> Well, that's the reason I put the idea out there... I can't think of every possible
> angle to look at it from... If I thought I could, I wouldn't need to solicit
> opinions in the first place.
No one possibly could. Which is why Open Source is such an effective
model for software development
nal Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Donnerstag, 7. Oktober 2004 14:22
> To: [EMAIL PROTECTED]
> Subject: RE: Proposed Action base class change
>
> Another fair point. :)
>
> Well, that's the reason I put the idea out there... I
t; better if you
>> > have your own "base" ActionForm that all you others derive
>> from, then
>> > its only in one place.
>> >
>> > Also, there are a set of "toString" builders in commons
>> lang which you
>> &g
AG Systemhaus GmbH
Elsenheimer Straße 11
80867 München
Phone +49-89-54 74 21 34
Fax +49-89-54 74 21 99
> -Original Message-
> From: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
> Sent: Donnerstag, 7. Oktober 2004 13:43
> To: Struts Developers List
> Subject: Re: Proposed A
That's a good point Mike, I didn't think of that. You might have
changed MY mind on this! I'll have to think about it a little more, but
you raise a solid issue.
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
Mike Stanley wrote:
I'm -1 on
.html
http://jakarta.apache.org/commons/lang/api/org/apache/commons/lang/builder/ReflectionToStringBuilder.html
Niall
- Original Message -
From: "Frank W. Zammetti" <[EMAIL PROTECTED]>
To: "Struts Developer" <[EMAIL PROTECTED]>
Sent: Thursday, October 07, 2004 4:29 AM
Subject: Re: P
I'm -1 on this.
By default, I think the ActionForms toString should be the default
Object.toString. If you need/desire you can easily still create a base
support class for your projects that implement the reflection based
toString you suggest.
The reason I'm anti- this is that it will cause
Hi, Frank.
I created a similar method, but rather a static one than a member method. So mine is
in a class called BeanUtil (not the apache commons beanutils) and applicable to any
other java bean. No need to modify the base class or whatever. So I can apply it on
FormBeans as well as servletReq
html
http://jakarta.apache.org/commons/lang/api/org/apache/commons/lang/builder/ReflectionToStringBuilder.html
Niall
- Original Message -
From: "Frank W. Zammetti" <[EMAIL PROTECTED]>
To: "Struts Developer" <[EMAIL PROTECTED]>
Sent: Thursday, October 0
Obviously I made a typo in the subject... this applies to the ActionForm
base class.
Did anyone have any comment on this? I've noticed a lack of activity on
the list lately...
Hello all...
I find myself all the time overloading toString() of my ActionForms for debugging
purposes, so I can ea
25 matches
Mail list logo