struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrice" <>
Subject Re: Struts Form Beans & Value Objects
Date Mon, 02 Dec 2002 18:28:00 GMT
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

----- Original Message -----
From: "Pat Quinn" <>
To: <>
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
> a header html table and a lines html table. My header and lines both
> 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
> 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.
> --
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message