Re: [POLL] ActionFrom vs DynaActionForm

2003-10-05 Thread Adam Hardy
On 09/30/2003 09:04 PM Ted Husted wrote:
As mentioned, you can subclass DynaActionForm and create whatever custom 
validations you need for a particular set of fields.

What's trickier is using different Validator validations without 
defining a new DynaActionForm. Here, the trick is that the Validator 
goes by the "attribute" property, not the "name" property. Since the 
attribute defaults to the name property, many people don't specify it. 
But you can use it to create a coarse-grained DynaActionForm, and then 
define different Validator forms to use with different workflows.
Hi Ted,

didn't have time to digest this when it first came over the wire but now 
I'm looking at it, I'm puzzled why we have DynaValidatorActionForm as 
well as DynaValidatorForm.

DynaValidatorForm allows us to specify a validation configuration for a 
named form, i.e. the action mapping's name. If this is too restrictive, 
we can, if I understand correctly, specify a different validation 
configuration in the action mapping's attribute.

So why do we need DynaValidatorActionForm, which allows us to specify a 
validation configuration based on the path? It seems superfluous, or is 
there some kind of restriction on the 'attribute' attribute which I 
don't know of?

Adam

--
struts 1.1 + tomcat 5.0.12 + java 1.4.2
Linux 2.4.20 RH9
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [POLL] ActionFrom vs DynaActionForm

2003-10-05 Thread Adam Hardy
On 10/01/2003 05:44 PM Robert Leland wrote:
On 10/01/2003 01:35 PM Andrew Hill wrote:

IDE code completion is certainly one of my favorite reasons for using 
a real
form :-)

Actually doesnt copyProperties() also work with dynaforms?

Adam Hardy wrote:

Yes as long as you don't need locale-specific date and number conversion.


So would this be a bug that needs to be addressed ? Does copyProperties 
have
a method that takes a locale.
Yes, copyProperties /should/ be locale-aware but for some reason it 
never quite got there.

See the links:

http://issues.apache.org/bugzilla/show_bug.cgi?id=16038

http://marc.theaimsgroup.com/?l=jakarta-commons-user&m=104248521327452&w=2



Adam
--
struts 1.1 + tomcat 5.0.12 + java 1.4.2
Linux 2.4.20 RH9
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [POLL] ActionFrom vs DynaActionForm

2003-10-03 Thread Graham Leggett
Brandon Goodin wrote:

-Dynas massive struts configs are annoying and the runtime errors
bite.
This is one of my biggest irritations with using DynaActionForm - it has 
a number of bugs where exceptions are caught and then lost.

-DynaForm time saving is insignificant (how long does it take for your
ide to generate getters/setters?).
The reason I don't like ActionForm beans is that they are too flexible - 
you can put any code you like in there, and that's exactly what I 
_don't_ want. I want a data structure that cannot be misused by people 
making their onw custom mods, which must then be propagated to all the 
ActionForms.

Regards,
Graham
--
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [POLL] ActionFrom vs DynaActionForm

2003-10-03 Thread Graham Leggett
Mainguy, Mike wrote:

#1 ActionForm
#2 DynaActionForm
I use DyanActionForms, as they are less work.

Less work, less time, less money, etc.

Regards,
Graham
--
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [POLL] ActionFrom vs DynaActionForm

2003-10-01 Thread Sgarlata Matt
There is a package in BeanUtils devoted to dealing with locales.  The
package documentation for this package (org.apache.commons.beanutils.locale)
states, "Locale-aware extensions of the standard beanutils classes. This
package allows locale-dependent population of JavaBean's.".

If you're interested, here's the BeanUtils API:
http://jakarta.apache.org/commons/beanutils/api/index.html

Matt
- Original Message - 
From: "Robert Leland" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, October 01, 2003 11:44 AM
Subject: Re: [POLL] ActionFrom vs DynaActionForm


> Adam Hardy wrote:
>
> > Yes as long as you don't need locale-specific date and number
conversion.
>
> So would this be a bug that needs to be addressed ? Does copyProperties
have
> a method that takes a locale.
> >
> > On 10/01/2003 01:35 PM Andrew Hill wrote:
> >
> >> IDE code completion is certainly one of my favorite reasons for using
> >> a real
> >> form :-)
> >>
> >> Actually doesnt copyProperties() also work with dynaforms?
> >
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [POLL] ActionFrom vs DynaActionForm

2003-10-01 Thread Craig R. McClanahan
Nick wrote:

So why can't you write a unit test for Dyna*Forms?  It's easy to load the struts-config.xml
and create the necessary form beans for out-of-container testing.  
 

This approach would be even easier if Struts provided some "mock 
objects" infrastructure with premade utility classes that help you do 
this sort of thing.  That's one of the enhancement areas on my wishlist 
for future versions of Struts.

Craig



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [POLL] ActionFrom vs DynaActionForm

2003-10-01 Thread Robert Leland
Adam Hardy wrote:

Yes as long as you don't need locale-specific date and number conversion.
So would this be a bug that needs to be addressed ? Does copyProperties have
a method that takes a locale.
On 10/01/2003 01:35 PM Andrew Hill wrote:

IDE code completion is certainly one of my favorite reasons for using 
a real
form :-)

Actually doesnt copyProperties() also work with dynaforms?



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [POLL] ActionFrom vs DynaActionForm

2003-10-01 Thread Nick
So why can't you write a unit test for Dyna*Forms?  It's easy to load the 
struts-config.xml
and create the necessary form beans for out-of-container testing.  

On Wed, Oct 01, 2003 at 06:45:22PM +0800, Andrew Hill wrote:
> I subscribe to that school. I believe everything should have a unit test.
> Its a very good school...
> 
> ...I just happen to be playing truant today.
> 
> -Original Message-
> From: Mark Galbreath [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 1 October 2003 18:41
> To: Struts Users Mailing List
> Subject: RE: [POLL] ActionFrom vs DynaActionForm
> 
> 
> That's fine if, of course, you subscribe to the school of thought
> prescribing a pre-code test (which I do not).
> 
> Mark
> 
> -Original Message-
> From: Vic Cekvenic [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 01, 2003 3:06 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [POLL] ActionFrom vs DynaActionForm
> 
> 
> +1 ActionForms.
> 
> On of the benefits of Modular/MVC programing is that you can unit test a
>   module, before integrating it.
> 
> .V
> 
> Andrew Hill wrote:
> > Call me old fashioned but I always use good old hand coded ActionForms.
> > Guess I like having something my compiler can get its teeth into. :-)
> >
> > Now that Im using Eclipse getters and setters are no problem at all. I
> love
> > that generate getter & setter menu option.  :-)
> >
> > (Validation isnt an issue for me either way as Ive always found it more
> > convenient to do in the Action)
> >
> > -Original Message-
> > From: Mainguy, Mike [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, 1 October 2003 00:52
> > To: [EMAIL PROTECTED]
> > Subject: [POLL] ActionFrom vs DynaActionForm
> >
> >
> > Next in my series of struts-user polls (please complain if this gets old).
> >
> > What sort of ActionForms does everyone use?
> >
> > #1 ActionForm
> > #2 DynaActionForm
> >
> > Personally, I'm an advocate of the DynaActionForm as it seems to be able
> to
> > do 80-90% of everything I need to do and everything else can be done in my
> > business tier.  I have, however, run into another person who is dead set
> > against using it.  His rationale is that you are then unable to do custom
> > validation when you use the DynaValidatorForm...  I think you can still do
> > it, it's just a little more difficult, but, I'm polling to see if I'm out
> in
> > left field...
> >

-- 
Nick Heudecker
SystemMobile, Inc.
Email: [EMAIL PROTECTED]
Web: http://www.systemmobile.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [POLL] ActionFrom vs DynaActionForm

2003-10-01 Thread Adam Hardy
Yes as long as you don't need locale-specific date and number conversion.

On 10/01/2003 01:35 PM Andrew Hill wrote:
IDE code completion is certainly one of my favorite reasons for using a real
form :-)
Actually doesnt copyProperties() also work with dynaforms?

-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Pratik Patel
Sent: Wednesday, 1 October 2003 19:29
To: [EMAIL PROTECTED]
Subject: Re: [POLL] ActionFrom vs DynaActionForm
+1 ActionForms
-1 Dyna*Forms
Brandon Goodin wrote:

#1

Reasons:
-Dynas massive struts configs are annoying and the runtime errors
bite.
-DynaForm time saving is insignificant (how long does it take for your
ide to generate getters/setters?).



more reasons:
- Easy to copy properties from ActionForm to domain object (using
BeanUtils.copyProperties )
- code completion can be used with ActionForms
cheers,
Pratik


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--
struts 1.1 + tomcat 5.0.12 + java 1.4.2
Linux 2.4.20 RH9
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: [POLL] ActionFrom vs DynaActionForm

2003-10-01 Thread Andrew Hill

if I'm simply copying all my properties to another class
(Torque Object, EJB, Business Object of some sort) why would I ever need
code completion for my action forms


Indeed, under such situations you would likely be better of with dynaforms.
IMHO The real advantages of writing an ActionForm class are when you are
writing a fair bit of java code that interacts with the form. Having a solid
class with strongly typed getters and setters really helps you to keep the
bugs down by catching many of the simple ones at compile time and of course
IDE feature like code completion can save a fair bit of time, and help jog
the memory (especially when you have a big form with lots of funny named
fields!)

-Original Message-
From: Mainguy, Mike [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 1 October 2003 19:47
To: 'Struts Users Mailing List'
Subject: RE: [POLL] ActionFrom vs DynaActionForm


BeanUtils.copyProperties also works with DynaForms (They implement DynaBean
and BeanUtils treats them (for the most part) as POJB's (c).

I will concede that code completion is a definite plus.  My only counter to
that would be that, if I'm simply copying all my properties to another class
(Torque Object, EJB, Business Object of some sort) why would I ever need
code completion for my action forms?

Code completion is a good point anyway though...

-Original Message-
From: Pratik Patel [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 01, 2003 7:29 AM
To: [EMAIL PROTECTED]
Subject: Re: [POLL] ActionFrom vs DynaActionForm

+1 ActionForms
-1 Dyna*Forms

Brandon Goodin wrote:
> #1
>
> Reasons:
> -Dynas massive struts configs are annoying and the runtime errors
> bite.
> -DynaForm time saving is insignificant (how long does it take for your
> ide to generate getters/setters?).
> 

more reasons:
- Easy to copy properties from ActionForm to domain object (using
BeanUtils.copyProperties )
- code completion can be used with ActionForms


cheers,
Pratik



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


This message and its contents (to include attachments) are the property of
Kmart Corporation (Kmart) and may contain confidential and proprietary
information. You are hereby notified that any disclosure, copying, or
distribution of this message, or the taking of any action based on
information contained herein is strictly prohibited. Unauthorized use of
information contained herein may subject you to civil and criminal
prosecution and penalties. If you are not the intended recipient, you should
delete this message immediately.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [POLL] ActionFrom vs DynaActionForm

2003-10-01 Thread Mainguy, Mike
BeanUtils.copyProperties also works with DynaForms (They implement DynaBean
and BeanUtils treats them (for the most part) as POJB's (c).

I will concede that code completion is a definite plus.  My only counter to
that would be that, if I'm simply copying all my properties to another class
(Torque Object, EJB, Business Object of some sort) why would I ever need
code completion for my action forms?

Code completion is a good point anyway though...

-Original Message-
From: Pratik Patel [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 01, 2003 7:29 AM
To: [EMAIL PROTECTED]
Subject: Re: [POLL] ActionFrom vs DynaActionForm

+1 ActionForms
-1 Dyna*Forms

Brandon Goodin wrote:
> #1
> 
> Reasons:
> -Dynas massive struts configs are annoying and the runtime errors
> bite.
> -DynaForm time saving is insignificant (how long does it take for your
> ide to generate getters/setters?).
> 

more reasons:
- Easy to copy properties from ActionForm to domain object (using 
BeanUtils.copyProperties )
- code completion can be used with ActionForms


cheers,
Pratik



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


This message and its contents (to include attachments) are the property of Kmart 
Corporation (Kmart) and may contain confidential and proprietary information. You are 
hereby notified that any disclosure, copying, or distribution of this message, or the 
taking of any action based on information contained herein is strictly prohibited. 
Unauthorized use of information contained herein may subject you to civil and criminal 
prosecution and penalties. If you are not the intended recipient, you should delete 
this message immediately.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [POLL] ActionFrom vs DynaActionForm

2003-10-01 Thread Andrew Hill
IDE code completion is certainly one of my favorite reasons for using a real
form :-)

Actually doesnt copyProperties() also work with dynaforms?

-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Pratik Patel
Sent: Wednesday, 1 October 2003 19:29
To: [EMAIL PROTECTED]
Subject: Re: [POLL] ActionFrom vs DynaActionForm


+1 ActionForms
-1 Dyna*Forms

Brandon Goodin wrote:
> #1
>
> Reasons:
> -Dynas massive struts configs are annoying and the runtime errors
> bite.
> -DynaForm time saving is insignificant (how long does it take for your
> ide to generate getters/setters?).
> 

more reasons:
- Easy to copy properties from ActionForm to domain object (using
BeanUtils.copyProperties )
- code completion can be used with ActionForms


cheers,
Pratik



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [POLL] ActionFrom vs DynaActionForm

2003-10-01 Thread Pratik Patel
+1 ActionForms
-1 Dyna*Forms
Brandon Goodin wrote:
#1

Reasons:
-Dynas massive struts configs are annoying and the runtime errors
bite.
-DynaForm time saving is insignificant (how long does it take for your
ide to generate getters/setters?).

more reasons:
- Easy to copy properties from ActionForm to domain object (using 
BeanUtils.copyProperties )
- code completion can be used with ActionForms

cheers,
Pratik


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: [POLL] ActionFrom vs DynaActionForm

2003-10-01 Thread Andrew Hill
http://marc.theaimsgroup.com/?l=struts-user&m=102696975022454&w=2

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 1 October 2003 18:59
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: [POLL] ActionFrom vs DynaActionForm


"when?"

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 01, 2003 6:39 AM
To: Struts Users Mailing List
Subject: RE: [POLL] ActionFrom vs DynaActionForm


That was me and it was over a year ago when I was a struts newbie...

-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 1 October 2003 18:33
To: Struts Users Mailing List
Subject: Re: [POLL] ActionFrom vs DynaActionForm


I remember a while back I think it was Mark made an excellent post about
his problem with ActionForms that went along the lines of 'Old Macdonald
had an ActionForm'.

Well basically I think the problem was he had edited an existing
ActionForm and messed up the getter / setter so that his JSP refused to
recognise the form as a Javabean and it ended up costing a fair few
hours work to track down the error.

So another +1 for DynaActionForms.


On 10/01/2003 06:02 AM Andrew Hill wrote:
> Call me old fashioned but I always use good old hand coded ActionForms.
> Guess I like having something my compiler can get its teeth into. :-)
>
> Now that Im using Eclipse getters and setters are no problem at all. I
love
> that generate getter & setter menu option.  :-)
>
> (Validation isnt an issue for me either way as Ive always found it more
> convenient to do in the Action)
>
> -Original Message-
> From: Mainguy, Mike [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 1 October 2003 00:52
> To: [EMAIL PROTECTED]
> Subject: [POLL] ActionFrom vs DynaActionForm
>
>
> Next in my series of struts-user polls (please complain if this gets old).
>
> What sort of ActionForms does everyone use?
>
> #1 ActionForm
> #2 DynaActionForm
>
> Personally, I'm an advocate of the DynaActionForm as it seems to be able
to
> do 80-90% of everything I need to do and everything else can be done in my
> business tier.  I have, however, run into another person who is dead set
> against using it.  His rationale is that you are then unable to do custom
> validation when you use the DynaValidatorForm...  I think you can still do
> it, it's just a little more difficult, but, I'm polling to see if I'm out
in
> left field...
>
>
>
> This message and its contents (to include attachments) are the property of
> Kmart Corporation (Kmart) and may contain confidential and proprietary
> information. You are hereby notified that any disclosure, copying, or
> distribution of this message, or the taking of any action based on
> information contained herein is strictly prohibited. Unauthorized use of
> information contained herein may subject you to civil and criminal
> prosecution and penalties. If you are not the intended recipient, you
should
> delete this message immediately.
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

--
struts 1.1 + tomcat 5.0.12 + java 1.4.2
Linux 2.4.20 RH9


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [POLL] ActionFrom vs DynaActionForm

2003-10-01 Thread Ted Husted
I know you guys are used to joshing each other, but let's still observe 
the rule that while we might disrespect a technology choice, but we 
don't disrespect the person making the choice.

Of course, anyone who knows Mark and Andrew knows this exchange is all 
in good fun, but all of this gets archived for posterity, and people new 
to the list can take it out of context.

-Ted.

Mark Galbreath wrote:
Reread my post, you illiterate pseudo-limey!

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 01, 2003 6:45 AM
To: Struts Users Mailing List
Subject: RE: [POLL] ActionFrom vs DynaActionForm
I subscribe to that school. I believe everything should have a unit test.
Its a very good school...
...I just happen to be playing truant today.

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 1 October 2003 18:41
To: Struts Users Mailing List
Subject: RE: [POLL] ActionFrom vs DynaActionForm
That's fine if, of course, you subscribe to the school of thought
prescribing a pre-code test (which I do not).
Mark



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: [POLL] ActionFrom vs DynaActionForm

2003-10-01 Thread Mark Galbreath
"when?"

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 01, 2003 6:39 AM
To: Struts Users Mailing List
Subject: RE: [POLL] ActionFrom vs DynaActionForm


That was me and it was over a year ago when I was a struts newbie...

-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 1 October 2003 18:33
To: Struts Users Mailing List
Subject: Re: [POLL] ActionFrom vs DynaActionForm


I remember a while back I think it was Mark made an excellent post about
his problem with ActionForms that went along the lines of 'Old Macdonald
had an ActionForm'.

Well basically I think the problem was he had edited an existing
ActionForm and messed up the getter / setter so that his JSP refused to
recognise the form as a Javabean and it ended up costing a fair few
hours work to track down the error.

So another +1 for DynaActionForms.


On 10/01/2003 06:02 AM Andrew Hill wrote:
> Call me old fashioned but I always use good old hand coded ActionForms.
> Guess I like having something my compiler can get its teeth into. :-)
>
> Now that Im using Eclipse getters and setters are no problem at all. I
love
> that generate getter & setter menu option.  :-)
>
> (Validation isnt an issue for me either way as Ive always found it more
> convenient to do in the Action)
>
> -Original Message-
> From: Mainguy, Mike [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 1 October 2003 00:52
> To: [EMAIL PROTECTED]
> Subject: [POLL] ActionFrom vs DynaActionForm
>
>
> Next in my series of struts-user polls (please complain if this gets old).
>
> What sort of ActionForms does everyone use?
>
> #1 ActionForm
> #2 DynaActionForm
>
> Personally, I'm an advocate of the DynaActionForm as it seems to be able
to
> do 80-90% of everything I need to do and everything else can be done in my
> business tier.  I have, however, run into another person who is dead set
> against using it.  His rationale is that you are then unable to do custom
> validation when you use the DynaValidatorForm...  I think you can still do
> it, it's just a little more difficult, but, I'm polling to see if I'm out
in
> left field...
>
>
>
> This message and its contents (to include attachments) are the property of
> Kmart Corporation (Kmart) and may contain confidential and proprietary
> information. You are hereby notified that any disclosure, copying, or
> distribution of this message, or the taking of any action based on
> information contained herein is strictly prohibited. Unauthorized use of
> information contained herein may subject you to civil and criminal
> prosecution and penalties. If you are not the intended recipient, you
should
> delete this message immediately.
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

--
struts 1.1 + tomcat 5.0.12 + java 1.4.2
Linux 2.4.20 RH9


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [POLL] ActionFrom vs DynaActionForm

2003-10-01 Thread Mark Galbreath
Reread my post, you illiterate pseudo-limey!

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 01, 2003 6:45 AM
To: Struts Users Mailing List
Subject: RE: [POLL] ActionFrom vs DynaActionForm


I subscribe to that school. I believe everything should have a unit test.
Its a very good school...

...I just happen to be playing truant today.

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 1 October 2003 18:41
To: Struts Users Mailing List
Subject: RE: [POLL] ActionFrom vs DynaActionForm


That's fine if, of course, you subscribe to the school of thought
prescribing a pre-code test (which I do not).

Mark

-Original Message-
From: Vic Cekvenic [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 01, 2003 3:06 AM
To: [EMAIL PROTECTED]
Subject: Re: [POLL] ActionFrom vs DynaActionForm


+1 ActionForms.

On of the benefits of Modular/MVC programing is that you can unit test a
  module, before integrating it.

.V

Andrew Hill wrote:
> Call me old fashioned but I always use good old hand coded ActionForms.
> Guess I like having something my compiler can get its teeth into. :-)
>
> Now that Im using Eclipse getters and setters are no problem at all. I
love
> that generate getter & setter menu option.  :-)
>
> (Validation isnt an issue for me either way as Ive always found it more
> convenient to do in the Action)
>
> -Original Message-
> From: Mainguy, Mike [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 1 October 2003 00:52
> To: [EMAIL PROTECTED]
> Subject: [POLL] ActionFrom vs DynaActionForm
>
>
> Next in my series of struts-user polls (please complain if this gets old).
>
> What sort of ActionForms does everyone use?
>
> #1 ActionForm
> #2 DynaActionForm
>
> Personally, I'm an advocate of the DynaActionForm as it seems to be able
to
> do 80-90% of everything I need to do and everything else can be done in my
> business tier.  I have, however, run into another person who is dead set
> against using it.  His rationale is that you are then unable to do custom
> validation when you use the DynaValidatorForm...  I think you can still do
> it, it's just a little more difficult, but, I'm polling to see if I'm out
in
> left field...
>
>
>
> This message and its contents (to include attachments) are the property of
> Kmart Corporation (Kmart) and may contain confidential and proprietary
> information. You are hereby notified that any disclosure, copying, or
> distribution of this message, or the taking of any action based on
> information contained herein is strictly prohibited. Unauthorized use of
> information contained herein may subject you to civil and criminal
> prosecution and penalties. If you are not the intended recipient, you
should
> delete this message immediately.
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [POLL] ActionFrom vs DynaActionForm

2003-10-01 Thread Andrew Hill
I subscribe to that school. I believe everything should have a unit test.
Its a very good school...

...I just happen to be playing truant today.

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 1 October 2003 18:41
To: Struts Users Mailing List
Subject: RE: [POLL] ActionFrom vs DynaActionForm


That's fine if, of course, you subscribe to the school of thought
prescribing a pre-code test (which I do not).

Mark

-Original Message-
From: Vic Cekvenic [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 01, 2003 3:06 AM
To: [EMAIL PROTECTED]
Subject: Re: [POLL] ActionFrom vs DynaActionForm


+1 ActionForms.

On of the benefits of Modular/MVC programing is that you can unit test a
  module, before integrating it.

.V

Andrew Hill wrote:
> Call me old fashioned but I always use good old hand coded ActionForms.
> Guess I like having something my compiler can get its teeth into. :-)
>
> Now that Im using Eclipse getters and setters are no problem at all. I
love
> that generate getter & setter menu option.  :-)
>
> (Validation isnt an issue for me either way as Ive always found it more
> convenient to do in the Action)
>
> -Original Message-
> From: Mainguy, Mike [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 1 October 2003 00:52
> To: [EMAIL PROTECTED]
> Subject: [POLL] ActionFrom vs DynaActionForm
>
>
> Next in my series of struts-user polls (please complain if this gets old).
>
> What sort of ActionForms does everyone use?
>
> #1 ActionForm
> #2 DynaActionForm
>
> Personally, I'm an advocate of the DynaActionForm as it seems to be able
to
> do 80-90% of everything I need to do and everything else can be done in my
> business tier.  I have, however, run into another person who is dead set
> against using it.  His rationale is that you are then unable to do custom
> validation when you use the DynaValidatorForm...  I think you can still do
> it, it's just a little more difficult, but, I'm polling to see if I'm out
in
> left field...
>
>
>
> This message and its contents (to include attachments) are the property of
> Kmart Corporation (Kmart) and may contain confidential and proprietary
> information. You are hereby notified that any disclosure, copying, or
> distribution of this message, or the taking of any action based on
> information contained herein is strictly prohibited. Unauthorized use of
> information contained herein may subject you to civil and criminal
> prosecution and penalties. If you are not the intended recipient, you
should
> delete this message immediately.
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [POLL] ActionFrom vs DynaActionForm

2003-10-01 Thread Mark Galbreath
That's fine if, of course, you subscribe to the school of thought
prescribing a pre-code test (which I do not).

Mark

-Original Message-
From: Vic Cekvenic [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 01, 2003 3:06 AM
To: [EMAIL PROTECTED]
Subject: Re: [POLL] ActionFrom vs DynaActionForm


+1 ActionForms.

On of the benefits of Modular/MVC programing is that you can unit test a
  module, before integrating it.

.V

Andrew Hill wrote:
> Call me old fashioned but I always use good old hand coded ActionForms.
> Guess I like having something my compiler can get its teeth into. :-)
>
> Now that Im using Eclipse getters and setters are no problem at all. I
love
> that generate getter & setter menu option.  :-)
>
> (Validation isnt an issue for me either way as Ive always found it more
> convenient to do in the Action)
>
> -Original Message-
> From: Mainguy, Mike [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 1 October 2003 00:52
> To: [EMAIL PROTECTED]
> Subject: [POLL] ActionFrom vs DynaActionForm
>
>
> Next in my series of struts-user polls (please complain if this gets old).
>
> What sort of ActionForms does everyone use?
>
> #1 ActionForm
> #2 DynaActionForm
>
> Personally, I'm an advocate of the DynaActionForm as it seems to be able
to
> do 80-90% of everything I need to do and everything else can be done in my
> business tier.  I have, however, run into another person who is dead set
> against using it.  His rationale is that you are then unable to do custom
> validation when you use the DynaValidatorForm...  I think you can still do
> it, it's just a little more difficult, but, I'm polling to see if I'm out
in
> left field...
>
>
>
> This message and its contents (to include attachments) are the property of
> Kmart Corporation (Kmart) and may contain confidential and proprietary
> information. You are hereby notified that any disclosure, copying, or
> distribution of this message, or the taking of any action based on
> information contained herein is strictly prohibited. Unauthorized use of
> information contained herein may subject you to civil and criminal
> prosecution and penalties. If you are not the intended recipient, you
should
> delete this message immediately.
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [POLL] ActionFrom vs DynaActionForm

2003-10-01 Thread Andrew Hill
That was me and it was over a year ago when I was a struts newbie...

-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 1 October 2003 18:33
To: Struts Users Mailing List
Subject: Re: [POLL] ActionFrom vs DynaActionForm


I remember a while back I think it was Mark made an excellent post about
his problem with ActionForms that went along the lines of 'Old Macdonald
had an ActionForm'.

Well basically I think the problem was he had edited an existing
ActionForm and messed up the getter / setter so that his JSP refused to
recognise the form as a Javabean and it ended up costing a fair few
hours work to track down the error.

So another +1 for DynaActionForms.


On 10/01/2003 06:02 AM Andrew Hill wrote:
> Call me old fashioned but I always use good old hand coded ActionForms.
> Guess I like having something my compiler can get its teeth into. :-)
>
> Now that Im using Eclipse getters and setters are no problem at all. I
love
> that generate getter & setter menu option.  :-)
>
> (Validation isnt an issue for me either way as Ive always found it more
> convenient to do in the Action)
>
> -Original Message-
> From: Mainguy, Mike [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 1 October 2003 00:52
> To: [EMAIL PROTECTED]
> Subject: [POLL] ActionFrom vs DynaActionForm
>
>
> Next in my series of struts-user polls (please complain if this gets old).
>
> What sort of ActionForms does everyone use?
>
> #1 ActionForm
> #2 DynaActionForm
>
> Personally, I'm an advocate of the DynaActionForm as it seems to be able
to
> do 80-90% of everything I need to do and everything else can be done in my
> business tier.  I have, however, run into another person who is dead set
> against using it.  His rationale is that you are then unable to do custom
> validation when you use the DynaValidatorForm...  I think you can still do
> it, it's just a little more difficult, but, I'm polling to see if I'm out
in
> left field...
>
>
>
> This message and its contents (to include attachments) are the property of
> Kmart Corporation (Kmart) and may contain confidential and proprietary
> information. You are hereby notified that any disclosure, copying, or
> distribution of this message, or the taking of any action based on
> information contained herein is strictly prohibited. Unauthorized use of
> information contained herein may subject you to civil and criminal
> prosecution and penalties. If you are not the intended recipient, you
should
> delete this message immediately.
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

--
struts 1.1 + tomcat 5.0.12 + java 1.4.2
Linux 2.4.20 RH9


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [POLL] ActionFrom vs DynaActionForm

2003-10-01 Thread Adam Hardy
I remember a while back I think it was Mark made an excellent post about 
his problem with ActionForms that went along the lines of 'Old Macdonald 
had an ActionForm'.

Well basically I think the problem was he had edited an existing 
ActionForm and messed up the getter / setter so that his JSP refused to 
recognise the form as a Javabean and it ended up costing a fair few 
hours work to track down the error.

So another +1 for DynaActionForms.

On 10/01/2003 06:02 AM Andrew Hill wrote:
Call me old fashioned but I always use good old hand coded ActionForms.
Guess I like having something my compiler can get its teeth into. :-)
Now that Im using Eclipse getters and setters are no problem at all. I love
that generate getter & setter menu option.  :-)
(Validation isnt an issue for me either way as Ive always found it more
convenient to do in the Action)
-Original Message-
From: Mainguy, Mike [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 1 October 2003 00:52
To: [EMAIL PROTECTED]
Subject: [POLL] ActionFrom vs DynaActionForm
Next in my series of struts-user polls (please complain if this gets old).

What sort of ActionForms does everyone use?

#1 ActionForm
#2 DynaActionForm
Personally, I'm an advocate of the DynaActionForm as it seems to be able to
do 80-90% of everything I need to do and everything else can be done in my
business tier.  I have, however, run into another person who is dead set
against using it.  His rationale is that you are then unable to do custom
validation when you use the DynaValidatorForm...  I think you can still do
it, it's just a little more difficult, but, I'm polling to see if I'm out in
left field...


This message and its contents (to include attachments) are the property of
Kmart Corporation (Kmart) and may contain confidential and proprietary
information. You are hereby notified that any disclosure, copying, or
distribution of this message, or the taking of any action based on
information contained herein is strictly prohibited. Unauthorized use of
information contained herein may subject you to civil and criminal
prosecution and penalties. If you are not the intended recipient, you should
delete this message immediately.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--
struts 1.1 + tomcat 5.0.12 + java 1.4.2
Linux 2.4.20 RH9
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [POLL] ActionFrom vs DynaActionForm

2003-10-01 Thread Adam Hardy
DynaActionForm +1

On 09/30/2003 06:52 PM Mainguy, Mike wrote:
Next in my series of struts-user polls (please complain if this gets old).

What sort of ActionForms does everyone use?

#1 ActionForm
#2 DynaActionForm
Personally, I'm an advocate of the DynaActionForm as it seems to be able to
do 80-90% of everything I need to do and everything else can be done in my
business tier.  I have, however, run into another person who is dead set
against using it.  His rationale is that you are then unable to do custom
validation when you use the DynaValidatorForm...  I think you can still do
it, it's just a little more difficult, but, I'm polling to see if I'm out in
left field...


This message and its contents (to include attachments) are the property of Kmart Corporation (Kmart) and may contain confidential and proprietary information. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on information contained herein is strictly prohibited. Unauthorized use of information contained herein may subject you to civil and criminal prosecution and penalties. If you are not the intended recipient, you should delete this message immediately.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--
struts 1.1 + tomcat 5.0.12 + java 1.4.2
Linux 2.4.20 RH9
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [POLL] ActionFrom vs DynaActionForm

2003-10-01 Thread Vic Cekvenic
+1 ActionForms.

On of the benefits of Modular/MVC programing is that you can unit test a 
 module, before integrating it.

.V

Andrew Hill wrote:
Call me old fashioned but I always use good old hand coded ActionForms.
Guess I like having something my compiler can get its teeth into. :-)
Now that Im using Eclipse getters and setters are no problem at all. I love
that generate getter & setter menu option.  :-)
(Validation isnt an issue for me either way as Ive always found it more
convenient to do in the Action)
-Original Message-
From: Mainguy, Mike [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 1 October 2003 00:52
To: [EMAIL PROTECTED]
Subject: [POLL] ActionFrom vs DynaActionForm
Next in my series of struts-user polls (please complain if this gets old).

What sort of ActionForms does everyone use?

#1 ActionForm
#2 DynaActionForm
Personally, I'm an advocate of the DynaActionForm as it seems to be able to
do 80-90% of everything I need to do and everything else can be done in my
business tier.  I have, however, run into another person who is dead set
against using it.  His rationale is that you are then unable to do custom
validation when you use the DynaValidatorForm...  I think you can still do
it, it's just a little more difficult, but, I'm polling to see if I'm out in
left field...


This message and its contents (to include attachments) are the property of
Kmart Corporation (Kmart) and may contain confidential and proprietary
information. You are hereby notified that any disclosure, copying, or
distribution of this message, or the taking of any action based on
information contained herein is strictly prohibited. Unauthorized use of
information contained herein may subject you to civil and criminal
prosecution and penalties. If you are not the intended recipient, you should
delete this message immediately.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: [POLL] ActionFrom vs DynaActionForm

2003-09-30 Thread Andrew Hill
Call me old fashioned but I always use good old hand coded ActionForms.
Guess I like having something my compiler can get its teeth into. :-)

Now that Im using Eclipse getters and setters are no problem at all. I love
that generate getter & setter menu option.  :-)

(Validation isnt an issue for me either way as Ive always found it more
convenient to do in the Action)

-Original Message-
From: Mainguy, Mike [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 1 October 2003 00:52
To: [EMAIL PROTECTED]
Subject: [POLL] ActionFrom vs DynaActionForm


Next in my series of struts-user polls (please complain if this gets old).

What sort of ActionForms does everyone use?

#1 ActionForm
#2 DynaActionForm

Personally, I'm an advocate of the DynaActionForm as it seems to be able to
do 80-90% of everything I need to do and everything else can be done in my
business tier.  I have, however, run into another person who is dead set
against using it.  His rationale is that you are then unable to do custom
validation when you use the DynaValidatorForm...  I think you can still do
it, it's just a little more difficult, but, I'm polling to see if I'm out in
left field...



This message and its contents (to include attachments) are the property of
Kmart Corporation (Kmart) and may contain confidential and proprietary
information. You are hereby notified that any disclosure, copying, or
distribution of this message, or the taking of any action based on
information contained herein is strictly prohibited. Unauthorized use of
information contained herein may subject you to civil and criminal
prosecution and penalties. If you are not the intended recipient, you should
delete this message immediately.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [POLL] ActionFrom vs DynaActionForm

2003-09-30 Thread Nick

Okay, you missed the message I sent out a few days ago regarding this.
I've patched XDoclet to allow you to specify your DynaForm configs
as XDoclet tags.  An example:

/**
   @struts.dynaform name="testForm" type="org.example.form.BaseDynaForm"
*/
public class Test {

  /**
* @struts.dynaform-field name="id" type="java.lang.Long" initial="0"
*/

  //  and so on.

}

I'm thinking about having it detect the 'type' attribute, but I haven't had
time yet.  Here's the original post:
http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]&msgNo=89738

If you'd like to download it, you can get it here:
http://www.systemmobile.com/code/xdoclet-apache-module-sm-1_2b4.zip



On Tue, Sep 30, 2003 at 02:54:01PM -0400, Chen, Gin wrote:
> For starters:
> 
> If you have a dynaform defined like so:
> 
>
> 
>
> 
> You have to define the above in the merge file and then define the java
> supporting class with no Xdoclets tag.
> I would much perfer to be able to do:
> 
> /**
>   * @struts.form   name="searchForm"
>   * @struts.property name="userName" type="java.lang.String"
>   */
> In my java class and have it auto generate the above merge xml.
> 
> The whole tiles support in Xdoclet could be more robust as well.
> -Tim
>

-- 
Nick Heudecker
SystemMobile, Inc.
Email: [EMAIL PROTECTED]
Web: http://www.systemmobile.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [POLL] ActionFrom vs DynaActionForm

2003-09-30 Thread Ted Husted
As mentioned, you can subclass DynaActionForm and create whatever custom 
validations you need for a particular set of fields.

What's trickier is using different Validator validations without 
defining a new DynaActionForm. Here, the trick is that the Validator 
goes by the "attribute" property, not the "name" property. Since the 
attribute defaults to the name property, many people don't specify it. 
But you can use it to create a coarse-grained DynaActionForm, and then 
define different Validator forms to use with different workflows.

-Ted.

Mainguy, Mike wrote:
Next in my series of struts-user polls (please complain if this gets old).

What sort of ActionForms does everyone use?

#1 ActionForm
#2 DynaActionForm
Personally, I'm an advocate of the DynaActionForm as it seems to be able to
do 80-90% of everything I need to do and everything else can be done in my
business tier.  I have, however, run into another person who is dead set
against using it.  His rationale is that you are then unable to do custom
validation when you use the DynaValidatorForm...  I think you can still do
it, it's just a little more difficult, but, I'm polling to see if I'm out in
left field...


This message and its contents (to include attachments) are the property of Kmart Corporation (Kmart) and may contain confidential and proprietary information. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on information contained herein is strictly prohibited. Unauthorized use of information contained herein may subject you to civil and criminal prosecution and penalties. If you are not the intended recipient, you should delete this message immediately.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--
Ted Husted,
  Junit in Action  - ,
  Struts in Action - ,
  JSP Site Design  - .
"Get Ready, We're Moving Out!!" - 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [POLL] ActionFrom vs DynaActionForm

2003-09-30 Thread José Ventura
+1 (#1)

IMHO, especially because of IDE auto-completion (wich works with normal
ActionForms but not with Dynas). It really helps me when I don't remember
the exact spelling of a displayed field -- or when I don't remember WHAT
is displayed on screen :P

The time to generate new getters and setters doesn't really bother me...

[]'s
- ventura

- Original Message -
From: "Michael Ruppin" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, September 30, 2003 2:33 PM
Subject: Re: [POLL] ActionFrom vs DynaActionForm


> +1 (#1).
>
> m
>
> --- Brandon Goodin <[EMAIL PROTECTED]> wrote:
> > #1
> >
> > Reasons:
> > -Dynas massive struts configs are annoying and the runtime errors
> > bite.
> > -DynaForm time saving is insignificant (how long does it take for your
> > ide to generate getters/setters?).
> > -Refactoring is easier is traditional ActionForms
> > -Also, for all the time that you spend restarting your tomcat for each
> > change you make to the config you could make changes to a hard class
> > more easily and let the classloader reaload it instead of the whole
> > container.
> > -An ActionForm is more cleanly organized in package structures (not
> > configs).
> > -DynaForms also have limitations in regards to the use of LazyList
> > -DynaForms also make extending more difficult
> > -DynaForms also don't have traditional getters and setter for the times
> > that you want to insert code into them (personally, I use them quite
> > often cuz I don't like huge Action classes)
> >
> > That said... I am not completely anti Dyna. I just don't see the value
> > in using them for everything. I've used them for my whole app and didn't
> > find them that useful. But, I have used them in niche cases where I
> > wanted to enhance chained action classes (see http://strutschaining.org/
> > ). But, even that can be solved with a mapped back form.
> >
> > IMAO - I do not see the case for DynaForms. But, I am willing to be
> > convinced.
> >
> > Brandon Goodin
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> __
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product search
> http://shopping.yahoo.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [POLL] ActionFrom vs DynaActionForm

2003-09-30 Thread Chen, Gin
For starters:

If you have a dynaform defined like so:

   

   

You have to define the above in the merge file and then define the java
supporting class with no Xdoclets tag.
I would much perfer to be able to do:

/**
  * @struts.form   name="searchForm"
  * @struts.property name="userName" type="java.lang.String"
  */
In my java class and have it auto generate the above merge xml.

The whole tiles support in Xdoclet could be more robust as well.
-Tim

-Original Message-
From: Nick [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 30, 2003 2:12 PM
To: Struts Users Mailing List
Subject: Re: [POLL] ActionFrom vs DynaActionForm



What else would you like the DynaForms for XDoclet to do?  Since I
released the patch to 1.2b3 (or beta 4?), I haven't had any feedback
about it.  


On Tue, Sep 30, 2003 at 02:06:11PM -0400, Chen, Gin wrote:
> You'll love Xdoclet.
> Unfortunately it doesn't provide anything more than a merge point for
> DynaForms but still very very cool.
> Try a simple struts app using it (I think there's an example one on the
> site).
> -Tim
> 
> -Original Message-
> From: Steve Raeburn [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, September 30, 2003 1:41 PM
> To: Struts Users Mailing List
> Subject: RE: [POLL] ActionFrom vs DynaActionForm
> 
> 
> #2 - It was I revelation when I realised I didn't need to write
ActionForms!
> 
> (But one day soon I'm going to look at XDoclet to see what that can do for
> me).
> 
> Steve
> 
> > -Original Message-
> > From: Mainguy, Mike [mailto:[EMAIL PROTECTED]
> > Sent: September 30, 2003 9:52 AM
> > To: [EMAIL PROTECTED]
> > Subject: [POLL] ActionFrom vs DynaActionForm
> >
> >
> > Next in my series of struts-user polls (please complain if this gets
old).
> >
> > What sort of ActionForms does everyone use?
> >
> > #1 ActionForm
> > #2 DynaActionForm
> >
> > Personally, I'm an advocate of the DynaActionForm as it seems to
> > be able to
> > do 80-90% of everything I need to do and everything else can be done in
my
> > business tier.  I have, however, run into another person who is dead set
> > against using it.  His rationale is that you are then unable to do
custom
> > validation when you use the DynaValidatorForm...  I think you can still
do
> > it, it's just a little more difficult, but, I'm polling to see if
> > I'm out in
> > left field...
> >
> >
> >
> > This message and its contents (to include attachments) are the
> > property of Kmart Corporation (Kmart) and may contain
> > confidential and proprietary information. You are hereby notified
> > that any disclosure, copying, or distribution of this message, or
> > the taking of any action based on information contained herein is
> > strictly prohibited. Unauthorized use of information contained
> > herein may subject you to civil and criminal prosecution and
> > penalties. If you are not the intended recipient, you should
> > delete this message immediately.
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Nick Heudecker
SystemMobile, Inc.
Email: [EMAIL PROTECTED]
Web: http://www.systemmobile.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [POLL] ActionFrom vs DynaActionForm

2003-09-30 Thread Gandle, Panchasheel
I agree with Marks reasons for using the ActionForms,
They are cleanly organized in cleanly organized in package structures.
If you have a nice naming convention for ActionForm matching JSPs,
you know rightaway which form bean is used.

In #2 you have to search for it in configs and the property names.

Although I used DynaForms when the form is really small and need minimal 
validations, and thats what I would use it for.

Panchasheel

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 30, 2003 1:37 PM
To: Struts Users Mailing List
Subject: RE: [POLL] ActionFrom vs DynaActionForm


As Linus Tovalds said about SCO, "You must be smokin' crack."

-Original Message-
From: Brandon Goodin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 30, 2003 1:28 PM

#1

Reasons:
-Dynas massive struts configs are annoying and the runtime errors
bite.
-DynaForm time saving is insignificant (how long does it take for your
ide to generate getters/setters?).
-Refactoring is easier is traditional ActionForms
-Also, for all the time that you spend restarting your tomcat for each
change you make to the config you could make changes to a hard class
more easily and let the classloader reaload it instead of the whole
container.
-An ActionForm is more cleanly organized in package structures (not
configs).
-DynaForms also have limitations in regards to the use of LazyList
-DynaForms also make extending more difficult
-DynaForms also don't have traditional getters and setter for the times
that you want to insert code into them (personally, I use them quite
often cuz I don't like huge Action classes)

That said... I am not completely anti Dyna. I just don't see the value
in using them for everything. I've used them for my whole app and didn't
find them that useful. But, I have used them in niche cases where I
wanted to enhance chained action classes (see http://strutschaining.org/
). But, even that can be solved with a mapped back form.

IMAO - I do not see the case for DynaForms. But, I am willing to be
convinced.

Brandon Goodin


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [POLL] ActionFrom vs DynaActionForm

2003-09-30 Thread Nick

What else would you like the DynaForms for XDoclet to do?  Since I
released the patch to 1.2b3 (or beta 4?), I haven't had any feedback
about it.  


On Tue, Sep 30, 2003 at 02:06:11PM -0400, Chen, Gin wrote:
> You'll love Xdoclet.
> Unfortunately it doesn't provide anything more than a merge point for
> DynaForms but still very very cool.
> Try a simple struts app using it (I think there's an example one on the
> site).
> -Tim
> 
> -Original Message-
> From: Steve Raeburn [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, September 30, 2003 1:41 PM
> To: Struts Users Mailing List
> Subject: RE: [POLL] ActionFrom vs DynaActionForm
> 
> 
> #2 - It was I revelation when I realised I didn't need to write ActionForms!
> 
> (But one day soon I'm going to look at XDoclet to see what that can do for
> me).
> 
> Steve
> 
> > -Original Message-
> > From: Mainguy, Mike [mailto:[EMAIL PROTECTED]
> > Sent: September 30, 2003 9:52 AM
> > To: [EMAIL PROTECTED]
> > Subject: [POLL] ActionFrom vs DynaActionForm
> >
> >
> > Next in my series of struts-user polls (please complain if this gets old).
> >
> > What sort of ActionForms does everyone use?
> >
> > #1 ActionForm
> > #2 DynaActionForm
> >
> > Personally, I'm an advocate of the DynaActionForm as it seems to
> > be able to
> > do 80-90% of everything I need to do and everything else can be done in my
> > business tier.  I have, however, run into another person who is dead set
> > against using it.  His rationale is that you are then unable to do custom
> > validation when you use the DynaValidatorForm...  I think you can still do
> > it, it's just a little more difficult, but, I'm polling to see if
> > I'm out in
> > left field...
> >
> >
> >
> > This message and its contents (to include attachments) are the
> > property of Kmart Corporation (Kmart) and may contain
> > confidential and proprietary information. You are hereby notified
> > that any disclosure, copying, or distribution of this message, or
> > the taking of any action based on information contained herein is
> > strictly prohibited. Unauthorized use of information contained
> > herein may subject you to civil and criminal prosecution and
> > penalties. If you are not the intended recipient, you should
> > delete this message immediately.
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Nick Heudecker
SystemMobile, Inc.
Email: [EMAIL PROTECTED]
Web: http://www.systemmobile.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [POLL] ActionFrom vs DynaActionForm

2003-09-30 Thread Chen, Gin
You'll love Xdoclet.
Unfortunately it doesn't provide anything more than a merge point for
DynaForms but still very very cool.
Try a simple struts app using it (I think there's an example one on the
site).
-Tim

-Original Message-
From: Steve Raeburn [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 30, 2003 1:41 PM
To: Struts Users Mailing List
Subject: RE: [POLL] ActionFrom vs DynaActionForm


#2 - It was I revelation when I realised I didn't need to write ActionForms!

(But one day soon I'm going to look at XDoclet to see what that can do for
me).

Steve

> -Original Message-
> From: Mainguy, Mike [mailto:[EMAIL PROTECTED]
> Sent: September 30, 2003 9:52 AM
> To: [EMAIL PROTECTED]
> Subject: [POLL] ActionFrom vs DynaActionForm
>
>
> Next in my series of struts-user polls (please complain if this gets old).
>
> What sort of ActionForms does everyone use?
>
> #1 ActionForm
> #2 DynaActionForm
>
> Personally, I'm an advocate of the DynaActionForm as it seems to
> be able to
> do 80-90% of everything I need to do and everything else can be done in my
> business tier.  I have, however, run into another person who is dead set
> against using it.  His rationale is that you are then unable to do custom
> validation when you use the DynaValidatorForm...  I think you can still do
> it, it's just a little more difficult, but, I'm polling to see if
> I'm out in
> left field...
>
>
>
> This message and its contents (to include attachments) are the
> property of Kmart Corporation (Kmart) and may contain
> confidential and proprietary information. You are hereby notified
> that any disclosure, copying, or distribution of this message, or
> the taking of any action based on information contained herein is
> strictly prohibited. Unauthorized use of information contained
> herein may subject you to civil and criminal prosecution and
> penalties. If you are not the intended recipient, you should
> delete this message immediately.
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [POLL] ActionFrom vs DynaActionForm

2003-09-30 Thread Steve Raeburn
#2 - It was I revelation when I realised I didn't need to write ActionForms!

(But one day soon I'm going to look at XDoclet to see what that can do for
me).

Steve

> -Original Message-
> From: Mainguy, Mike [mailto:[EMAIL PROTECTED]
> Sent: September 30, 2003 9:52 AM
> To: [EMAIL PROTECTED]
> Subject: [POLL] ActionFrom vs DynaActionForm
>
>
> Next in my series of struts-user polls (please complain if this gets old).
>
> What sort of ActionForms does everyone use?
>
> #1 ActionForm
> #2 DynaActionForm
>
> Personally, I'm an advocate of the DynaActionForm as it seems to
> be able to
> do 80-90% of everything I need to do and everything else can be done in my
> business tier.  I have, however, run into another person who is dead set
> against using it.  His rationale is that you are then unable to do custom
> validation when you use the DynaValidatorForm...  I think you can still do
> it, it's just a little more difficult, but, I'm polling to see if
> I'm out in
> left field...
>
>
>
> This message and its contents (to include attachments) are the
> property of Kmart Corporation (Kmart) and may contain
> confidential and proprietary information. You are hereby notified
> that any disclosure, copying, or distribution of this message, or
> the taking of any action based on information contained herein is
> strictly prohibited. Unauthorized use of information contained
> herein may subject you to civil and criminal prosecution and
> penalties. If you are not the intended recipient, you should
> delete this message immediately.
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [POLL] ActionFrom vs DynaActionForm

2003-09-30 Thread Mark Galbreath
As Linus Tovalds said about SCO, "You must be smokin' crack."

-Original Message-
From: Brandon Goodin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 30, 2003 1:28 PM

#1

Reasons:
-Dynas massive struts configs are annoying and the runtime errors
bite.
-DynaForm time saving is insignificant (how long does it take for your
ide to generate getters/setters?).
-Refactoring is easier is traditional ActionForms
-Also, for all the time that you spend restarting your tomcat for each
change you make to the config you could make changes to a hard class
more easily and let the classloader reaload it instead of the whole
container.
-An ActionForm is more cleanly organized in package structures (not
configs).
-DynaForms also have limitations in regards to the use of LazyList
-DynaForms also make extending more difficult
-DynaForms also don't have traditional getters and setter for the times
that you want to insert code into them (personally, I use them quite
often cuz I don't like huge Action classes)

That said... I am not completely anti Dyna. I just don't see the value
in using them for everything. I've used them for my whole app and didn't
find them that useful. But, I have used them in niche cases where I
wanted to enhance chained action classes (see http://strutschaining.org/
). But, even that can be solved with a mapped back form.

IMAO - I do not see the case for DynaForms. But, I am willing to be
convinced.

Brandon Goodin


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [POLL] ActionFrom vs DynaActionForm

2003-09-30 Thread Michael Ruppin
+1 (#1).

m

--- Brandon Goodin <[EMAIL PROTECTED]> wrote:
> #1
> 
> Reasons:
> -Dynas massive struts configs are annoying and the runtime errors
> bite.
> -DynaForm time saving is insignificant (how long does it take for your
> ide to generate getters/setters?).
> -Refactoring is easier is traditional ActionForms
> -Also, for all the time that you spend restarting your tomcat for each
> change you make to the config you could make changes to a hard class
> more easily and let the classloader reaload it instead of the whole
> container.
> -An ActionForm is more cleanly organized in package structures (not
> configs).
> -DynaForms also have limitations in regards to the use of LazyList
> -DynaForms also make extending more difficult
> -DynaForms also don't have traditional getters and setter for the times
> that you want to insert code into them (personally, I use them quite
> often cuz I don't like huge Action classes)
> 
> That said... I am not completely anti Dyna. I just don't see the value
> in using them for everything. I've used them for my whole app and didn't
> find them that useful. But, I have used them in niche cases where I
> wanted to enhance chained action classes (see http://strutschaining.org/
> ). But, even that can be solved with a mapped back form.
> 
> IMAO - I do not see the case for DynaForms. But, I am willing to be
> convinced.
> 
> Brandon Goodin
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [POLL] ActionFrom vs DynaActionForm

2003-09-30 Thread Chen, Gin
#2 any chance I get.
+1 on Wendy's validation comments too. Custom validation couldn't be easier
in a dynaform
-Tim

-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 30, 2003 12:57 PM
To: Struts Users Mailing List
Subject: RE: [POLL] ActionFrom vs DynaActionForm


> Next in my series of struts-user polls (please complain if this gets
old).
> What sort of ActionForms does everyone use?
> #1 ActionForm
> #2 DynaActionForm

DynaValidatorForm, and what do you mean you can't do custom validation?
I just override validate(...) and do my thing, then call
super.validate(...) or not depending on what needs to be done.  There
are some complicated validations that I can't seem to convince Validator
to handle, so I do those in Java code.  

Dynamic forms get me out of writing all those get/set methods, that's
all.  They don't preclude you from having a Java class with other
methods.  I'm also interested in using xdoclet to generate the
ActionForm code, but haven't gotten around to learning how to do it.

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University, PA, IRM 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [POLL] ActionFrom vs DynaActionForm

2003-09-30 Thread Brandon Goodin
#1

Reasons:
-Dynas massive struts configs are annoying and the runtime errors
bite.
-DynaForm time saving is insignificant (how long does it take for your
ide to generate getters/setters?).
-Refactoring is easier is traditional ActionForms
-Also, for all the time that you spend restarting your tomcat for each
change you make to the config you could make changes to a hard class
more easily and let the classloader reaload it instead of the whole
container.
-An ActionForm is more cleanly organized in package structures (not
configs).
-DynaForms also have limitations in regards to the use of LazyList
-DynaForms also make extending more difficult
-DynaForms also don't have traditional getters and setter for the times
that you want to insert code into them (personally, I use them quite
often cuz I don't like huge Action classes)

That said... I am not completely anti Dyna. I just don't see the value
in using them for everything. I've used them for my whole app and didn't
find them that useful. But, I have used them in niche cases where I
wanted to enhance chained action classes (see http://strutschaining.org/
). But, even that can be solved with a mapped back form.

IMAO - I do not see the case for DynaForms. But, I am willing to be
convinced.

Brandon Goodin


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [POLL] ActionFrom vs DynaActionForm

2003-09-30 Thread Koni Roth
#2 DynaActionForm

I don't think custom validation is difficult. We use commons validation 
together with custom validation and it works fine.

Koni

Mainguy, Mike wrote:
Next in my series of struts-user polls (please complain if this gets old).

What sort of ActionForms does everyone use?

#1 ActionForm
#2 DynaActionForm
Personally, I'm an advocate of the DynaActionForm as it seems to be able to
do 80-90% of everything I need to do and everything else can be done in my
business tier.  I have, however, run into another person who is dead set
against using it.  His rationale is that you are then unable to do custom
validation when you use the DynaValidatorForm...  I think you can still do
it, it's just a little more difficult, but, I'm polling to see if I'm out in
left field...




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--
 Jump and the earth will rise to meet you!
 http://www.rothweb.ch
 http://www.rothconsulting.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: [POLL] ActionFrom vs DynaActionForm

2003-09-30 Thread Wendy Smoak
> Next in my series of struts-user polls (please complain if this gets
old).
> What sort of ActionForms does everyone use?
> #1 ActionForm
> #2 DynaActionForm

DynaValidatorForm, and what do you mean you can't do custom validation?
I just override validate(...) and do my thing, then call
super.validate(...) or not depending on what needs to be done.  There
are some complicated validations that I can't seem to convince Validator
to handle, so I do those in Java code.  

Dynamic forms get me out of writing all those get/set methods, that's
all.  They don't preclude you from having a Java class with other
methods.  I'm also interested in using xdoclet to generate the
ActionForm code, but haven't gotten around to learning how to do it.

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University, PA, IRM 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [POLL] ActionFrom vs DynaActionForm

2003-09-30 Thread Sgarlata Matt
Definitely not old; I love the polls!

There is not a single regular ActionForm in my project.  #2 all the way.

I will also mention that Craig McClanahan did some speed tests of
ActionForms vs. DynaActionForms and since ActionForms use reflection whereas
DynaActionForms do simple method calls on Maps, DynaActionForms run faster
in addition to being easier to create :)

Matt


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]