Subforms in JSP

How to use subforms in JSPs ? For Example, for every Sales Invoice JSP, I want the user to enter multiple items purchased. Here 'invoice number' is the primary key in "invoice" table and foreign key in "itemdetails" table.Thank you in advance.
[259 byte] By [VeereshKarnika] at [2007-11-27 2:40:47]
# 1
http://myfaces.apache.org/sandbox/subForm.html http://myfaces.apache.org/sandbox/tlddoc/s/subForm.html
java_2006a at 2007-7-12 3:03:58 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

I am not sure if he was talking about use of subforms in HTML or in JSF. As he is asking this in the JSP forum and not in the JSF forum, I assume that he was looking for a HTML solution.

Well, the links you provided are for JSF only. If you want to achieve the same in HTML, just use Javascript to access the DOM and change the form action or change a hidden input parameter, indicating which button was pressed.

BalusCa at 2007-7-12 3:03:58 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
I am talking about HTML and not JSF. I am using HTML with Javascript. Do you have any sample code for subforms ?
VeereshKarnika at 2007-7-12 3:03:58 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4

Like I said:

> just use Javascript to access the DOM and change the form action or change

> a hidden input parameter, indicating which button was pressed.

That is something like

document.yourFormName.action = 'page.jsp';

ordocument.getElementById('hiddenInputId').value = 'newvalue';

BalusCa at 2007-7-12 3:03:58 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...