I'm starting Java Web , developing a stocking system following the Caelum Java applet for Web.
All front-end
and the persistence layer have already been developed with only the control integrating the two, but I have a lot of doubts when it comes to getting the page data to treat them, insert in the database and so on. ..
For example in the page below, I have the Submission Form, according to what the booklet teaches I have to keep the fields named according to the corresponding attributes of the Class Shipping, until then quiet, the problem is that inside of the form I have a sub form that corresponds to class ItemEnvio
and a table, where I can insert multiple items.
My goal is to fill a ArrayList
with the items added in this table and the data from the top of the form in a Send object, send the two to controller
and add it to the database, it's the logic that I use when I develop in Java
using Swing
with JTable
and etc ..
Can anyone give an orientation on how to proceed?