struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Viral_Thakkar" <>
Subject RE: Direct ValueObject creation rather than ActionForm.
Date Fri, 01 Aug 2003 05:34:41 GMT

Please let me know the consequences of the approach I mentioned.


-----Original Message-----
From: Andrew Hill [] 
Sent: Friday, August 01, 2003 10:47 AM
To: Struts Users Mailing List
Subject: RE: Direct ValueObject creation rather than ActionForm.

This is quite a common idea that many people new to struts have. There
quite a few reasons why your ActionForm and your value object are
objects. (Indeed the very reason ActionForm is implemented as a class
than an interface is specifically to discourage people from using their
ActionForm as a value object.) If you search the list archives you will
numerous threads discussing the reasons why this is in fact a very bad
  -----Original Message-----
  From: Viral_Thakkar []
  Sent: Friday, 1 August 2003 13:05
  Subject: Direct ValueObject creation rather than ActionForm.

  I have a idea here. Why we require ActionForm class if we can have
ValueObject and that we can pass to the service layer.

  Can we create the instance of ValueObject class only rather than
ActionForm instance from the request data?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message