I don't see where this part of the thread began, but reset() is always
called before the bean is autopopulated from the request, regardless of
scope. If your reset is setting fields you want to retain to null, you
should have it stop. This is really only necessary when checkboxes are
expected.
--
uot; <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, November 23, 2001 1:30 PM
Subject: Re: Design question - Action Form vs Business Delegates/Value
Objects
> That sounds quite clever.
>
> So the adapter class itself has no fields,
John Yu wrote:
> Struts is clever enough to call myEmployeeBean.getEmployeeVO().getName().
Something to watch is that Struts is also clever enough to populate any
String or boolean public property property on employeeVO from a query
string. So if employeeVO had another property, like role, someon
:31
To: Struts Users Mailing List
Subject: AW: Design question - Action Form vs Business Delegates/Value
Objects
Hi Francois
Will yor mapper framework become a part of jakarta commons? What are the
plans?
When should I use David Winterfeld's validation framework and when yours?
Can they wor
endet: Freitag, 23. November 2001 09:17
An: 'Struts Users Mailing List'
Betreff: RE: Design question - Action Form vs Business Delegates/Value
Objects
I've had the same problem as you describe and like yourself have created a
mapper framework, see http://husted.com/struts/resource
28
To: 'Struts Users Mailing List'
Subject: Design question - Action Form vs Business Delegates/Value
Objects
Hello,
we're working on a quite large project with J2EE (including EJBs) and we're
using Struts (we're still in the early phases). To design a "clean"
app
t; >
> > > > > EmployeeForm extends ActionForm
> > > > > +getName():String
> > > > > +getAge():String
> > > > > +getDateOfBirth():String
> > > > >
> > > > > EmployeeVO
> > > > > +getName():String
&
where the
> fields
> > > have a "real" meaning (a Date is a Date).
> > >
> > > I don't see the reasons of making EmployeeVO an instance variable of
> > > EmployeeForm. And EmployeeVO can not be used directly inside Struts to
> map
>
terns. Is
there one already?
Matt O'Haire
Trysoft Corporation Ltd.
http://www.trysoft.com
-Original Message-
From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 23, 2001 08:35
To: Struts Users Mailing List
Cc: '[EMAIL PROTECTED]'
Subject: RE: Design question
> > }
> > >
> > > public void setAccount(AccountVo aAccount) {
> > > account = aAccount;
> > > }
> > >
> > > ....
> > > }
> > >
> > > Then, in your jsp you reference the accountvo members like
just be a "picky thing" that will simply
> waste resources.
>
> Thanks.
>
> Andrej
> -Original Message-
> From: Michelle Popovits [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, November 22, 2001 4:13 PM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
I'm interested in this mapper you talked about,
thanks,
btw: What is the difference between this one and the
one on Ted Husted's? Are you talking about Mapco?
Sandeep
--- "Sobkowski, Andrej" <[EMAIL PROTECTED]>
wrote:
> Hello,
>
> we're working on a quite large project with J2EE
> (including
a "picky thing" that will simply
waste resources.
Thanks.
Andrej
-Original Message-
From: Michelle Popovits [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 22, 2001 4:13 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: Design question - Action Form vs Business Delegate
ot; <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
>Subject: Design question - Action Form vs Business Delegates/Value Objects
>Date: Thu, 22 Nov 2001 13:2
Hello,
we're working on a quite large project with J2EE (including EJBs) and we're
using Struts (we're still in the early phases). To design a "clean"
application, I've defined different "object conversions":
* Request phase
- the ActionForm is converted to a Value Object
- the Value Object is pa
15 matches
Mail list logo