struts-user  

There *has* to be an easy way to do this...

Joe Hertz
Sun, 21 Mar 2004 23:43:22 -0800


I have a simple iterate in a piece of JSP (snippet follows) that provides an 
interface inside of an HTML table to modify items that came out of the 
database.

What I want to do is provide an extra row or two for new items to be inserted 
into the database. Short of embeddeding scriptlet code to generate the 
property identifiers (which are in a List), is there a good way to do this? 

Basically the ideal answer would be to have a way to tell logic:iterate to go 
for an extra round, with the tag being smart enough to "do the needful".

tia

-Joe

<table border=1 cellpadding=1>
<tr>
<th>Minimum Purchase</th>
<th>Cost Per Credit</th>
<th>Begin Date</th>
<th>End Date</th>
</tr>
<logic:iterate id="item" name="creditCost" indexId="index" 
type="bb.hibernate.Creditprice">
<tr><td><html:hidden name="item" property="id" indexed="true" />
<html:text maxlength="5" name="item" property="minPurchase" size="5" 
indexed="true" /></td>
<td><html:text maxlength="5" name="item" property="creditCost" size="5"  
indexed="true" /></td>
<td><html:text maxlength="10" name="item" property="beginDate" size="10" 
indexed="true" /></td>
<td><html:text maxlength="10" name="item" property="endDate" size="10"  
indexed="true" /></td></tr>
</logic:iterate>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]