Deleting items of record from a database
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   bayu_odus
Posted On:   Wednesday, December 12, 2001 05:58 AM

Considering this code from my Bean Mybean public boolean delete() { boolean deleted = false; try { deleted = Homepackage.delete(userId()); } catch (Exception e) { mErrorMessages.addError("process", e.getMessage()); } return deleted; } This is how I have tried to delete the displayed data using JSP and javascript. myJSP <%username.getName()%> <%=callCentreAgent.getId()%>">Delete      More>>

Considering this code from my Bean


Mybean



public boolean delete() {


boolean deleted = false;
try {


deleted = Homepackage.delete(userId());


}



catch (Exception e) {

mErrorMessages.addError("process", e.getMessage());
}



return deleted;

}






This is how I have tried to delete the displayed data using JSP and javascript.



myJSP

			



<%username.getName()%>






 





Can you please suggest a better way as this does not work    <<Less
About | Sitemap | Contact