Re: VO usage

2004-11-09 Thread Hubert Rabago
As you can see from the responses, you have a variety of options. Another option (I guess Niall forgot to mention) is to use your VO directly. Declare your VO as the form bean type, and Struts will use a BeanValidatorForm and wrap it with a WrapDynaBean. Really, though, you don't need to be awar

Re: VO usage

2004-11-09 Thread Struts User
On Tue, 9 Nov 2004 12:45:48 -0500, Robert Taylor <[EMAIL PROTECTED]> wrote: > Yes. Wendy is absolutely correct. > Although the I described will work technically, > you will run into issues as Wendy already mentioned. I use Robert's approach and make my VO as a JavaBean which only accepts String an

RE: VO usage

2004-11-09 Thread Robert Taylor
> Sent: Tuesday, November 09, 2004 12:09 PM > To: Struts Users Mailing List > Subject: RE: VO usage > > > Patrick, you could use DynaActionForms and just have your VO as a property. > You could unit test your VO's and the ActionForm is just a wrapper. > DynaActionFo

Re: VO usage

2004-11-09 Thread Niall Pemberton
You could use lazy DynaBean - I added LazyValidatorForm to Struts a few days ago - available in the nightly build: http://svn.apache.org/builds/struts/nightly/ Info: * http://struts.apache.org/api/org/apache/struts/validator/LazyValidatorForm.html * http://www.niallp.pwp.blueyonder.co.uk/#lazydy

RE: VO usage

2004-11-09 Thread Robert Taylor
Patrick, you could use DynaActionForms and just have your VO as a property. You could unit test your VO's and the ActionForm is just a wrapper. DynaActionForms can be defined in your struts-config.xml file thus reducing the number of physical objects you have to maintain. For updates, you will n

Re: VO usage

2004-11-09 Thread Wendy Smoak
From: "Patrick Beagan" <[EMAIL PROTECTED]> > Any suggestions to re-use these value objects? IE: It seems that I must > define an ActionForm for my struts layer, and have a plain value object > in my app server layer. I'd rather not duplicate. While it might seem like a good idea to use the datab