Accessing javabeans from a form within a form multiply times?
[nobr]Hello
I have a form that gets the name of a term and some other information and then gets different values that can be attached to this term for example different URLs. the form looks something like this:
<form id="expertForm" method="post">
<input type="hidden" name="sendAll" /><br />
<table>
<tr>
<td>Terms name:</td>
<td><input type="text" name="termname"></td>
</tr>
<tr>
<td>Description:</td>
<td><textarea rows="2" cols="20" name="description"></textarea></td>
</tr>
<tr>
<form id="expertRelForm" method="post">
<table>
<tr>
<td>Relationship:</td>
<td><textarea rows="1" cols="20" name="relationship"></textarea></td>
<td>
<select name="relType">
<option value="isa">Is_A</option>
<option value="partof">Part_Of</option>
</select>
</td>
</tr>
<tr>
<td align="right" colspan="">
<input type="submit" name="addRelation" value="Add"></td>
</tr>
</table>
</form>
</tr>
<tr>
<td align="right" colspan="2">
<input type="submit" name="termForm" value="ok"></td>
</tr>
</table>
</form>
<br>
I'm thinking of using a Javabean, i should use one, but how can I use the set method of the Javabean with the "add" button in the inner form, by clicking on this button I should be able to add different values to the javabean.
I want the user to be able to add different values if needed.
cheers,
ehsan[/nobr]

