I'm kinda confused on this too.

It seems there's a migration towards DynaActionForms and if you read Craig's
previous post:

http://www.mail-archive.com/[EMAIL PROTECTED]/msg34344.html

Defining a property as anything but a String seems taboo.  Let validator
assert that a property is an integer, but leave the type definition as
String in all cases on your ActionForm.

-Jake

-----Original Message-----
From: Philip Seay [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 03, 2003 9:02 AM
To: 'Struts Users Mailing List'
Subject: RE: Why isn't an ActionForm just a Map? 

According to Craig McClanahan at
http://www.theserverside.com/events/library.jsp#mcclanahan,
You would lose type safety and risk getting a ClassCastException in the
JSP.  Also, you would
not know which field names are legal.

Regards,
Phil Seay


-----Original Message-----
From: Fullam, Jonathan [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 03, 2003 5:58 AM
To: 'Struts Users Mailing List'
Subject: RE: Why isn't an ActionForm just a Map? 


One guess would be because then you would lose some of the methods which
provide more functionality than just a TransferObject provides. Such
methods
are validate and reset.

-Jonathan

-----Original Message-----
From: Antony Paul [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 03, 2003 8:39 AM
To: struts
Subject: Why isn't an ActionForm just a Map? 


This question is from the table of contents of a text book. I dont have
this
book in hand.
I have other questions also.
Why ActionForm is made Struts dependent ?.
Why not use just plain JavaBean whch can be used as TransferObject. ?

rgds
Antony Paul

---------------------------------------------------------------------
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]

Reply via email to