I do this often and it works well. The only thing I always forget to do if initialize the Vo
Ensure this is done in the form Bean: MyValueObject myVo = new MyValueObject(); Hope this helps. "Pat Quinn" <[EMAIL PROTECTED]> on 12/03/2002 05:23:05 AM Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] cc: Subject: Re: Struts Form Beans & Value Objects Hi, I have tried the below it works fine when i fetch the data but when i want to update a text field etc i get the following error: java.lang.IllegalArgumentException: No bean specified at org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(PropertyUtils.java:816) at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:846) at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:726) at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:978) at org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:779) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:246) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510) any ideas??? >From: "Patrice" <[EMAIL PROTECTED]> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]> >Subject: Re: Struts Form Beans & Value Objects >Date: Mon, 2 Dec 2002 19:28:00 +0100 > >I think you can place the VO in your form bean, and have text fields to >update the different properties. >For example, if you have a property "header" that contains your HeaderVO: ><html:text property="header.myProperty"/> > >After submission, the VO in the form bean will contain the data entered by >the user, without additional code. > >Hope it helps >Patrice > > >----- Original Message ----- >From: "Pat Quinn" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Monday, December 02, 2002 7:08 PM >Subject: Struts Form Beans & Value Objects > > > > I have an EJB which returns me a HeaderVO (Value Object) inside this VO >I > > have an Array List of LineVO's. As you'd except all my Value objects are > > Serializable. Ok now i want to display this data to my client so I will >have > > a header html table and a lines html table. My header and lines both >contain > > text fields to allow for client updates. > > > > Here's where i'm seeking some assistance: should I * Extract the data >from > > my headerVO and insert it into a FormBean and then store my linesVO data >as > > a 2Dimensional Array in my form bean. > > > > Is there a better way to do this without writing extra code to deal with > > conversion between VO's and a Form Bean i.e. can i store the value >objects > > instead a form bean but yet allow for user updates to the data. > > > > Your ideas and suggestions would be gratefully appreciated. > > > > > > > > > > > > > > > > _________________________________________________________________ > > Tired of spam? Get advanced junk mail protection with MSN 8. > > http://join.msn.com/?page=features/junkmail > > > > > > -- > > To unsubscribe, e-mail: ><mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: ><mailto:[EMAIL PROTECTED]> > > > > >-- >To unsubscribe, e-mail: ><mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: ><mailto:[EMAIL PROTECTED]> _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail -- To unsubscribe, e-mail: < mailto:[EMAIL PROTECTED]> For additional commands, e-mail: < mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>