Vidya Mahavadi wrote:

Hi guys,



I have a jsp where I have a table with few records and for each record I
have a Remove button, which actually should delete the record from
database. How do I pass the record id to the action.. Any ideas?



Regards,
Vidya


This message and any attachments are confidential and intended solely for the 
addressee. If you have received this message in error, please notify Discovery 
immediately, telephone number +27 11 529 2888. Any unauthorised use; alteration 
or dissemination of the contents of this email is strictly prohibited. In no 
event will Discovery or the sender be liable in any manner whatsoever to any 
person for any loss or any direct, indirect, special or consequential damages 
arising from use of this email or any linked website, including, without 
limitation, from any lost profits, business interruption, loss of programmes or 
other data that may be stored on any information handling system or otherwise 
from any assurance that this email is virus free even if Discovery is expressly 
advised of the possibility of such damages. Discovery is an Authorised 
Financial Services Provider.

Vidya,

Why not do something like this? In this case, the jsp called lists inventory items from a query. Each row in the table has buttons for update and delete.

              <td>
<a href="<html:rewrite href="preUpdateInventoryItem?inventoryID=${inventoryItem.inventoryID}"/>">
                       <html:img pageKey="images.updateIcon" border="0"/>
                   </a>
               </td>

               <td>
<a href="<html:rewrite href="preDeleteInventoryItem?inventoryID=${inventoryItem.inventoryID}"/>">
                       <html:img pageKey="images.trashIcon" border="0"/>
                   </a>
               </td>

We do the same sort of thing in all of our jsps that return results from user queries. If you need it, I can send you the code in the jsp that surrounds this.

HTH,

Al


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

Reply via email to