i have created a button(Delete). <input type=button name=del value=delete> now i want when i click this button the deleteRec() funtion of my utility class called which delete a record from database.and the current page reloaded. like this.. <% Delete obj = new Delete(); obj.deleteRec(-,-); %> how could i do this ?
Joined: Aug 21, 2001
yes , i have done something like this. 1. put a hidden field in the form. 2. when yhe user click the button value set to "delete". 3. and then make a connection to the database. 4. get reference to the EJB Home. 5. call obj.remove() method to remove selected data.