throws IOException, ServletException, CommunicationException, NamingException
{
String dataSource = Settings.getInstance().getSiteInfo(CVUtility.getHostName(super.getServlet().getServletContext())).getDataSource();
String FORWARD_final = ".view.marketing.editlistmanager";
HttpSession session = request.getSession(true);
String rowId[] = null;
String row = null;
if (request.getParameterValues("rowIdParent") != null)
{
rowId = request.getParameterValues("rowIdParent");
} //end of if statement (request.getParameterValues("rowIdParent") != null)
else if (request.getParameterValues("marketingListID") != null)
{
rowId = request.getParameterValues("marketingListID");
} //end of else if statement (request.getParameterValues("marketingListID") != null)
else if (session.getAttribute("marketingListID") != null)
{
row = (String) session.getAttribute("marketingListID");
session.removeAttribute("marketingListID");
} //end of else if statement (getAttribute("marketingListID") != null)
else if (request.getParameterValues("listid") != null)
{
rowId = request.getParameterValues("listid");
} //end of else if statement (getAttribute("marketingListID") != null)
else
{
if (request.getParameterValues("rowId") != null)
{
rowId = request.getParameterValues("rowId");
} //end of if statement (request.getParameterValues("rowId") !=null)
else if (request.getAttribute("rowId") != null)
{
row = (String)request.getAttribute("rowId");
} //end of else if statement (request.getAttribute("rowId") !=null)
else
{
row = (String)request.getAttribute("groupid");
} //end of else statement
} //end of else statement
// After performing the logic in the DeleteHanlder, we are generat a new request for the list
// So we will not be carrying the old error. So that we will try to collect the error from the Session variable
// Then destory it after getting the Session value
if (session.getAttribute("listErrorMessage") != null)
{
ActionErrors allErrors = (ActionErrors) session.getAttribute("listErrorMessage");
saveErrors(request, allErrors);
session.removeAttribute("listErrorMessage");
}//end of if (session.getAttribute("listErrorMessage") != null)
if (rowId != null)
{
row = rowId[0];
} //end of if statement (rowId != null)
request.setAttribute("rowId", row);
MarketingFacadeHome aa = (MarketingFacadeHome)CVUtility.getHomeObject("com.centraview.marketing.marketingfacade.MarketingFacadeHome", "MarketingFacade");
try
{
MarketingFacade remote = (MarketingFacade)aa.create();
remote.setDataSource(dataSource);
DynaActionForm dyna = (DynaActionForm)form;
if (row != null && !row.equals("")){
int rowID = Integer.parseInt(row);
ListVO listVO = remote.viewList(rowID);
dyna.set("listname", listVO.getTitle());
dyna.set("listdescription", listVO.getDescription());
dyna.set("listid", listVO.getListID()+"");
dyna.set("create", listVO.getCreated());
dyna.set("modify", listVO.getModified());
dyna.set("owner", listVO.getOwnerID()+"");
dyna.set("ownername", listVO.getOwnerName());
}
request.setAttribute("listFormBean", dyna);
} //end of try block
catch (Exception e)
{
logger.error("[Exception] ViewListHandler.Execute Handler ", e);
}
request.setAttribute("TypeOfOperation", "List Manager");
request.setAttribute("showAddAttendeesButton", new Boolean(false));
request.setAttribute("showImportButton", new Boolean(true));
UserObject userobjectd = (UserObject)session.getAttribute("userobject");
try
{
this.buildSubList(Integer.parseInt(row), userobjectd, request, session, dataSource);
}
catch (Exception e)