String dataSource = Settings.getInstance().getSiteInfo(CVUtility.getHostName(super.getServlet().getServletContext())).getDataSource();
try
{
HttpSession session = request.getSession(true);
int individualId = ((UserObject)session.getAttribute("userobject")).getIndividualID();
MarketingFacadeHome cfh = (MarketingFacadeHome)CVUtility.getHomeObject("com.centraview.marketing.marketingfacade.MarketingFacadeHome", "MarketingFacade");
MarketingFacade remote = (MarketingFacade)cfh.create();
remote.setDataSource(dataSource);
int promotionid = Integer.parseInt(request.getParameter("promotionid").toString());
HashMap mapPromotion = new HashMap();
mapPromotion.put("PromotionID", "" + promotionid);
remote.deletePromotion(individualId, promotionid);