Thanks a lot,
Is there any work done for OGNL integration in struts ?
Wendy Smoak <[EMAIL PROTECTED]>
03/08/2004 11:57
Veuillez r�pondre � "Struts Users Mailing List"
Pour : Struts Users Mailing List <[EMAIL PROTECTED]>
cc :
Objet : Re: ActionForm vs Hibernate POJO
> I am using Struts with Hibernate, and I was asked to reuse the Hibernate
> pojo as forms for my actions.
> Is it possible ?
Possible, but not advisable... at some point you will need to have
something
different in the form than in the POJO. Forms are generally all String
properties, POJO's should have types that make sense for the type of data
stored in them.
Since you can generate the code for the Form (xdoclet?) or use Dynamic
forms, the amount of effort you save by trying to reuse the Value Object
(your POJO) is IMO not worth the problems it's likely to cause.
--
Wendy Smoak
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
______________________________________________________________________
This message has been scanned and is free of viruses./
Ce courriel a fait l'objet d'une v�rification et est exempt de virus.
_____________________________________________________________________
**********************************************************************************
La pr�sente communication (et tout fichier rattach�) s'adresse uniquement au(x)
destinataire(s) pr�cit�(s) et ne peut �tre autrement distribu�e, copi�e ou utilis�e.
Le contenu de cette communication peut �tre assujetti au privil�ge du secret
professionnel. Tout droit � ce privil�ge est express�ment revendiqu� et nullement
abandonn�. Si vous avez re�u cette communication par erreur, veuillez nous en avertir
imm�diatement en r�pondant � ce courriel ou en nous appelant. Veuillez �galement
effacer cette communication (et tout fichier rattach�) sans en conserver une copie.
Merci.
***************
This communication (and any attachments) is directed in confidence to the addressee(s)
listed above, and may not otherwise be distributed, copied or used. The contents of
this communication may also be subject to lawyer-client privilege, and all rights to
that privilege are expressly claimed and not waived. If you have received this
communication in error, please notify us by reply e-mail or by telephone and delete
this communication (and any attachments) without making a copy. Thank you.