Hi!
Just a general question. how do i call an explicit object update? because i threw some new data in my table with an "update" and now if i call something like this:
public class DeleteContactAction extends Action{
private List l = null;
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse res) throws Exception{
DynaActionForm df = (DynaActionForm)form;
String[] contact_id = (String[])df.get("delete_contact");
for(int i=0; i < contact_id.length; i++){
l = QueryBuilder.getContactWithContactId(contact_id[i]);
Iterator iter = l.iterator();
Contact contact = (Contact)iter.next();
Deleter.delete(contact);
}
return mapping.findForward("contactDeleted");
}
}
this doesn't function. for me it seems logical, but view from the technical side.. why?
thanks
|