<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ page import="java.util.*" %> <%@ page import="java.util.Locale" %> <%@ page import="tw.com.systex.common.PropertiesBean" %> <%@ page import="tw.com.systex.dba.*" %> <% String language = PropertiesBean.getBundle("tw.com.systex.properties.ch", "Language", Locale.TAIWAN); BSwitchData qmswitch = new BSwitchData(); qmswitch.setAplistdn("ou=tpswitch,ou=parameter,ou=system,ou=ap_root,o=tycg,c=tw"); qmswitch.setLanguagetype(language); ArrayList qmswitchs = qmswitch.load(); String startusing = "N"; %> 桃園縣政府入口網站 <% if ( qmswitchs != null && qmswitchs.size() > 0 ) { BSwitchData qswitch = ( BSwitchData )qmswitchs.get(0); startusing = qswitch.getStartusing(); } if ( startusing.equals("Y") ) { response.sendRedirect("tf/index.html"); } else { if ( String.valueOf(request.getLocale()).equals("zh_TW") ) { response.sendRedirect("ch/index.jsp?popflag=Y"); }else if ( request.getLocale().equals("en_US") ) { response.sendRedirect("http://www.tycg.gov.tw/eng/index.aspx"); }else{ response.sendRedirect("ch/index.jsp?popflag=Y"); } } %>