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
TED]> Sent: Tuesday, November 09, 2004 4:48 PM Subject: VO usage I have an application that uses struts - ejbs - hibernate. My value objects used for hibernate have the exact members as my html forms. Does anyone have Any suggestions to re-use these value objects? IE: It seems that I must defin

RE: VO usage

2004-11-09 Thread Robert Taylor
rick Beagan [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 09, 2004 11:49 AM > To: [EMAIL PROTECTED] > Subject: VO usage > > > I have an application that uses struts - ejbs - hibernate. My value > objects used for hibernate have the exact members as my html forms. > Does

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

VO usage

2004-11-09 Thread Patrick Beagan
I have an application that uses struts - ejbs - hibernate. My value objects used for hibernate have the exact members as my html forms. Does anyone have 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 objec