Guest User

Untitled

a guest
Jul 13th, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.54 KB | None | 0 0
  1. else if(operation.equals("createCategory")){
  2.                 try{
  3.                     System.out.println("Started createCategory");
  4.                     fLocal = fLocalHome.create();
  5.                     System.out.println("Created facade");
  6.                     String cName = req.getParameter("cName");
  7.                     CategoryVO cvo = new CategoryVO(cName);
  8.                     fLocal.createCategory(cvo);
  9.                     req.setAttribute("AllCategories", cvo);
  10.                     url = "/findCategories.jsp";
  11.                    
  12.                 }
  13.                 catch(Exception e){
  14.                     e.printStackTrace();
  15.                     System.out.println("Wrong when you trying to create Category");
  16.                    
  17.                 }
  18.             }
Add Comment
Please, Sign In to add comment