When I click on the edit, delete bid or Accept Bid links in the logic tags below nothing happens. Any suggestions why?

%@ taglib uri="/bean" prefix="bean" %>
<%@ taglib uri="/html" prefix="html" %>
<%@ taglib uri="/logic" prefix="logic" %>
<%@ taglib uri="/template" prefix="template" %>

<br/>
<html:errors/>
<br/>

<script language="javascript">

function editOffer() {
offerList.action = "editOffer.do?action=edit";
offerList.actn.value = "edit";
offerList.submit();
}

function deleteOffer() {
offerList.action = "deleteOffer.do";
offerList.actn.value = "delete";
offerList.submit();
}

function acceptBid() {
offerList.action = "acceptBid.do";
offerList.actn.value = "accept";
offerList.submit();
}

function bid() {
offerList.action = "bid.do";
offerList.actn.value = "bid";
offerList.submit();
}

</script>

<form name="offerList">

<input type="hidden" name="actn"/>

<table cellpadding="2" width="80%">

<tr>
<td>
</td>
<td>
<b>User</b>
</td>
<td>
<b>Name</b>
</td>
<td>
<b>Description</b>
</td>
<td>
<b>Expected Value</b>
</td>
<td>
<b>Max Bid</b>
</td>
</tr>
<logic:iterate name="offerList"
id="offer"
scope="request"
type="auction.entity.Offer">

<tr>
<bean:define id="offerId" name="offer" property="offerId"/>
<td>
<input type="radio" name="offerId" checked value="<%= offerId %>"/>
</td>
<td>
<bean:write name="offer" property="userId"/>
</td>
<td> <bean:write name="offer" property="name"/>
</td>
<td>
<bean:write name="offer" property="description"/>
</td>
<td>
<bean:write name="offer" property="expectedValue"/>
</td>
<td>
<bean:write name="offer" property="maxBid"/>
</td>
</tr>

</logic:iterate>

<tr>
<td colspan="6" align="center">

<logic:equal parameter="actn" value="public">
<input type="text" name="bidValue"/>
&nbsp;
<a href="javascript:bid()">Bid</a>
</logic:equal>

<logic:equal parameter="actn" value="mine">
<a href="javascript:editOffer()">Edit</a>
&nbsp;
<a href="javascript:deleteOffer()">Delete</a>
&nbsp;
<a href="javascript:acceptBid()">Accept Bid</a>
&nbsp;
</logic:equal>

</td>
</tr>
</table>

</form>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>

Reply via email to