ModelAndView modelAndView = new ModelAndView("ITlistInternalTransactions");
List<InternalUserTransaction> transactions = transactionBO.getDeptInternalUserTransactions(2); //2:IT dept
System.out.println(transactions.listIterator());
modelAndView.addObject("currentuser", currentuser);
modelAndView.addObject("transactions", transactions);
InternalUserTransaction trans = new InternalUserTransaction();
modelAndView.addObject("trans", trans);
return modelAndView;
}
else{
ModelAndView modelAndView = new ModelAndView("accessdenied");