Struts and actionForm

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,738
Latest member
JinaMacvit

Latest Threads

Top