Package formbeans

Examples of formbeans.DelMedForm


  String button = request.getParameter("button");
  String delName = null;
  if(button != null){
    if(button.equals("Delete")){
    try {
      DelMedForm form = new DelMedForm();
      form = formBeanFactory.create(request)
      delList.add(form.getMedid());
    if(!form.isPresent()){
      return "showAddMed.jsp";
    }
    //add deleted id into the delete list.
    try {
        delName = medDAO.getMedName(Integer.parseInt(form.getMedid())).getName();
      medDAO.Delete(Integer.parseInt(form.getMedid()));
    } catch (NumberFormatException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    } catch (DAOException e) {
      // TODO Auto-generated catch block
View Full Code Here

TOP

Related Classes of formbeans.DelMedForm

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.