<%@ page import="java.lang.*" %> <%@ page import="java.net.*" %> <%@ page import="com.easyinsurance.common.DashBoard" %> <% String text=""; try{ String rmhost= request.getRemoteHost(); String refname=request.getHeader("Referer"); String prod=request.getParameter("prod"); URL url=new URL(refname); String dname=url.getHost(); if(dname != null && prod != null) dname=dname+"$- "+prod+"$- sp2index"; else dname=dname+"$-sp2index"; //DashBoard dashobj=new DashBoard(); //int kk=dashobj.getReferweb(rmhost,dname); if(prod.equals("travel")) response.sendRedirect("travelhome.do?ref_source=sp2index&utm_source=ozonemedia&utm_medium=cpc&utm_campaign=ozonemedia"); else if(prod.equals("health")) response.sendRedirect("healthHomeSearch.do?ref_source=sp2index&utm_source=ozonemedia&utm_medium=cpc&utm_campaign=ozonemedia"); else if(prod.equals("tw")) response.sendRedirect("twowheelerSearch.do?ref_source=sp2index&utm_source=ozonemedia&utm_medium=cpc&utm_campaign=ozonemedia"); else if(prod.equals("car")) response.sendRedirect("motorHomeSearch.do?ref_source=sp2index&utm_source=ozonemedia&utm_medium=cpc&utm_campaign=ozonemedia"); else if(prod.equals("home")) response.sendRedirect("searchhomeinsurance.do?ref_source=sp2index&utm_source=ozonemedia&utm_medium=cpc&utm_campaign=ozonemedia"); else if(prod.equals("life")) response.sendRedirect("lifeHomeSearch.do?ref_source=sp2index&utm_source=ozonemedia&utm_medium=cpc&utm_campaign=ozonemedia"); else if(prod.equals("pa")) response.sendRedirect("personalAccidentInsurance.do?ref_source=sp2index&utm_source=ozonemedia&utm_medium=cpc&utm_campaign=ozonemedia"); else response.sendRedirect("customerIndex.do?ref_source=sp2index&utm_source=ozonemedia&utm_medium=cpc&utm_campaign=ozonemedia"); }catch(Exception e){ response.sendRedirect("customerIndex.do?ref_source=sp2index&utm_source=ozonemedia&utm_medium=cpc&utm_campaign=ozonemedia"); } %>