which probelm u wouldn't have if u used webwork -----Original Message----- From: Viral_Thakkar [mailto:[EMAIL PROTECTED] Sent: Monday, August 04, 2003 9:31 AM To: [EMAIL PROTECTED] Subject: RE: Direct ValueObject creation rather than ActionForm.
Yes, I agree that it is not good programming to replace the ActionForm with ValueObject. But let me know your view about having both ActionForm and ValueObject and use some kind of mapping to get the ValueObject instance from the ActionForm instance. Example is available at http://www.mycgiserver.com/~andrej/technical/struts/struts.jsp Here usage of vo = FormToVOMapper.map(form, new ExampleVO()); is shown. Please suggest me whether this is good to use such mapping to get the valueobject instance and also do they support all possible datatypes and different mappings. Thanks. -----Original Message----- From: Kalra, Ashwani [mailto:[EMAIL PROTECTED] Sent: Friday, August 01, 2003 10:57 AM To: 'Struts Users Mailing List' Subject: RE: Direct ValueObject creation rather than ActionForm. One drawback. ActionForm classes import classes from http packages. which binds it to the particular layer. Cheers Ashwani Kalra http://www.geocities.com/ashwani_kalra/ > -----Original Message----- > From: Andrew Hill [mailto:[EMAIL PROTECTED] > 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 are > quite a few reasons why your ActionForm and your value object > are different > objects. (Indeed the very reason ActionForm is implemented as > a class rather > than an interface is specifically to discourage people from > using their > ActionForm as a value object.) If you search the list > archives you will see > numerous threads discussing the reasons why this is in fact a > very bad idea > indeed. > -----Original Message----- > From: Viral_Thakkar [mailto:[EMAIL PROTECTED] > Sent: Friday, 1 August 2003 13:05 > To: [EMAIL PROTECTED] > 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? > > > > Thanks > > > > > > ____________________________________________________ This message contains information that may be privileged or confidential and is the property of the Cap Gemini Ernst & Young Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. --------------------------------------------------------------------- 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] NOTICE: This message contains privileged and confidential information intended only for the person or entity to which it is addressed. Any review, retransmission, dissemination, copy or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient, is prohibited. If you received this message in error, please notify the sender immediately by e-mail, facsimile or telephone and thereafter delete the material from any computer. The New Africa Capital Group, its subsidiaries or associates do not accept liability for any personal views expressed in this message. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]