<%@ 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) dname=dname+" $-yahoo "; DashBoard dashobj=new DashBoard(); int kk=dashobj.getReferweb(rmhost,dname); if(prod.equals("travel")) response.sendRedirect("travelhome.do"); else if(prod.equals("health")) response.sendRedirect("healthHomeSearch.do"); else if(prod.equals("tw")) response.sendRedirect("twowheelerSearch.do"); else if(prod.equals("car")) response.sendRedirect("motorHomeSearch.do"); else if(prod.equals("home")) response.sendRedirect("searchhomeinsurance.do"); else if(prod.equals("life")) response.sendRedirect("lifeHomeSearch.do"); else if(prod.equals("pa")) response.sendRedirect("personalAccidentInsurance.do"); }catch(Exception e){ response.sendRedirect("customerIndex.do"); } %>