> *     Thus a Struts ActionForm is not a true domain object.

Definitely true -- ActionForm is a view tier object, used (by the
framework, not the application) to maintain the server-side state of input
fields on an HTML form.  Trying to treat it as a domain object is a misuse
of Struts, and violates the fundamental design principles that the
framework is based on.

By the way, this is also why ActionForm is a concrete class and not an
interface (which it was in the pre-1.0 days).  Too many people didn't
understand this crucial concept, and were using it incorrectly (by
making their real domain objects "implement ActionForm").  It was changed
to a concrete class to push application developers towards doing the right
thing.  I'm not in favor of switching it back.

Craig


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

Reply via email to