<%@ page language = "java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> <% jp.co.nttdata.iproject.util.WarpHttpServletRequest warpRequest = new jp.co.nttdata.iproject.util.WarpHttpServletRequest(request);%> <%@ page import="jp.co.nttdata.iproject.asp.view.ZAspView"%> <%@ page import="jp.co.nttdata.iproject.app.lgnc.ZCustomerIf" %> <%@ page import="jp.co.nttdata.iproject.app.lgnc.ctrl.WEntranceParameterCheck" %> <%@ page import="jp.co.nttdata.iproject.app.tab.s2300esyh.view.S2300EsyhProperties" %> <%@ page import="jp.co.nttdata.iproject.util.*" %> <%@ page errorPage="/ZCommonErrorPage.jsp" %> <%@ include file="/GetParameters.jsp" %> <%@ include file="/cacheClear.jsp" %> <% ZAspView aspView = new ZAspView(ZAspView.ASPGROUP_NIF); session.setAttribute(jp.co.nttdata.iproject.app.tab.s0000comn.util.S0000ComnConstant.AttrNm_AspView,aspView); lgnc_cust.setAspView(aspView); /** プロパティ読み込み **/ S2300EsyhProperties esyhProperties = new S2300EsyhProperties(aspView); ZteeLog teeLog = new ZteeLog( this,lgnc_cust ); teeLog.log("channel=[" + lgnc_cust.getValue("channel") + "]," + "gateway=[" + lgnc_cust.getValue("gateway") + "]," + "campaignno=[" + lgnc_cust.getValue("campaignno") + "]"); /** パラメータチェック START **/ WEntranceParameterCheck entranceParameterCheck = new WEntranceParameterCheck(); if (!entranceParameterCheck.parameterCheck(lgnc_cust, request)) { // セッション上の顧客情報をクリア session.setAttribute(ZCustomerIf.CUSTOMER_VIEW, null); throw new Exception("meprm000"); } /** パラメータチェック END **/ // パラメータがない場合、指定のパラメータを付加してリダイレクトさせる boolean paramUmu = true; String hokenNo = (String)warpRequest.getParameter("hokenNo"); String age = (String)warpRequest.getParameter("age"); String menkyo = (String)warpRequest.getParameter("menkyo"); teeLog.log("hokenNo=[" + hokenNo + "]," + "age=[" + age + "]," + "menkyo=[" + menkyo + "]"); if ( hokenNo == null || "".equals(hokenNo) ) { hokenNo = esyhProperties.getUserResourceValue("HOKEN_NO"); paramUmu = false; } if ( age == null || "".equals(age) ) { age = esyhProperties.getUserResourceValue("AGE"); paramUmu = false; } if ( menkyo == null || "".equals(menkyo) ) { menkyo = esyhProperties.getUserResourceValue("MENKYO"); paramUmu = false; } /** 指定外のパラメータ付与 **/ StringBuilder sb = new StringBuilder(); Enumeration enumeration2 = request.getParameterNames(); while( enumeration2.hasMoreElements()){ String name = (String)enumeration2.nextElement(); if (name.equals("hokenNo") || name.equals("age") || name.equals("menkyo") || name.equals("channel") || name.equals("gateway") || name.equals("campaignno")) { continue; } sb.append("&"); if ( warpRequest.getParameter(name).length() != 0 ){ sb .append(name) .append("=") .append(warpRequest.getParameter(name)) ; } else { sb .append(name) .append("=") ; } } // パラメータあり if (paramUmu) { pageContext.forward("/servlets/jp.co.nttdata.iproject.app.tab.s2300esyh.servlet.S2300EsyHDispatcherServlet?jspName=INIT_COMPANY&buttonValue=F01"); // パラメータなし } else { StringBuffer urlbuf = new StringBuffer(); urlbuf.append("https://"); urlbuf.append(ZUrlDomain.getDomainString(request)); urlbuf.append(request.getRequestURI()); urlbuf.append("?hokenNo="); urlbuf.append(hokenNo); urlbuf.append("&age="); urlbuf.append(age); urlbuf.append("&menkyo="); urlbuf.append(menkyo); urlbuf.append(sb.toString()); response.sendRedirect(urlbuf.toString()); } %>