HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException {
ActionForward actionFrwd = null;
DistributionGroupBD bd =
(DistributionGroupBD) BusinessDelegateFactory
.getInstance()
.getDelegate(
"com.eteam.ems.auth.delegates.DistributionGroupBD");
log.debug("calling findDistGroup");
HttpSession session = request.getSession();
SessionUserVO sessUser =
(SessionUserVO) session.getAttribute(
IConstants.SESSION_ATTR_USER_SESSION_INFO);
String dsName = sessUser.getDsName();
String dbType = sessUser.getDbType();
DistributionGroupVO distGroupVO = new DistributionGroupVO();
try {
distGroupVO =
bd.getDistGroup(dsName, dbType, request.getParameter("id"));
} catch(DAOException e){
ActionMessage message = new ActionMessage(IErrorMessageKeys.KEY_DATABASE_ERROR);
ActionMessages messages = new ActionMessages();
messages.add(IConstants.PAGE_ERROR_MSG_ERROR_MESSAGE, message);
this.saveErrors(request, messages);