Andrey Dmitriev wrote:
I use two forms, because its a structure of web-page. Page consists of 2 parts.
This still doesn't explain the two forms. The style of the page isn't usually relevant. Even if it has two sections, why cannot a single form encompass the two sections?
Each part is used for sending different kinds of data to different tables in DB.
This in no way requires there to be two forms. What you do with the data once it gets to the servlet and is passed down to the data layer has nothing at all to do with the layout of the page.
As has been pointed out: one form per request. If the data from both sections of the page need to be submitted at the same time to a single request, there should be only one form.
Is there something other than the above that is preventing you from creating a single form?