S
sp
I've an html form for an Order. Order for me is a
Bean with some property (date,number,..). Order
have one or more elements. For me element is
a Bean with some property (code,quantity,price,description).
So I want to generate the setter and getter of the ActionForm tha recive
this field from html form.
For the property of the order is simple, but for
the elements of the order i don't know how to make a setter. I want to
collect a Vector or Array of elements Bean, but I don't know how to create a
setter.
I read that in a jsp page write:
<html:text property="myobj[1].price" ..
is as myobj[1].getPrice().
But how to costruct this settet?
Bean with some property (date,number,..). Order
have one or more elements. For me element is
a Bean with some property (code,quantity,price,description).
So I want to generate the setter and getter of the ActionForm tha recive
this field from html form.
For the property of the order is simple, but for
the elements of the order i don't know how to make a setter. I want to
collect a Vector or Array of elements Bean, but I don't know how to create a
setter.
I read that in a jsp page write:
<html:text property="myobj[1].price" ..
is as myobj[1].getPrice().
But how to costruct this settet?