% request.setCharacterEncoding("UTF-8"); %>
<%@ include file="utilapi.jsp" %>
<%@ include file="global.jsp" %>
<%@ include file="wap_global.oss" %>
<%@ include file="flash_lite_global.jsp" %>
<%
String ownskinConfig = application.getRealPath("/") + File.separator + "WEB-INF" + File.separator + "ownskin.cfg";
OSCFG.setPropertyFile(ownskinConfig);
String slidekey = request.getQueryString();
MSSQLStoredProc sp = null;
ResultSet rs = null;
String classid = null;
String host = null;
try {
sp = new MSSQLStoredProc(MSSQLStoredProc.DB_SLAVE, "fla_getslidedetail", 1);
sp.setInput(slidekey);
rs = sp.executeQuery();
if(rs.next()) {
classid = rs.getString("classid");
host = rs.getString("host");
}
} catch(Exception e) {
} finally {
try { rs.close(); } catch(Exception e) {}
try { sp.close(); } catch(Exception e) {}
}
//String selectedHost = getHostFromCluster((String)envCtx.lookup(host+".TOMCAT_HOST"));
String selectedHost = getHostFromCluster(OSCFG.getPropertyp(host+".TOMCAT_HOST"));
String urlDownload = "http://" + selectedHost + "/" + WG_URL_SLIDE_DOWNLOAD;
urlDownload = urlDownload+"?t="+slidekey+"&c="+classid+"&h=www.ownskin.com";
response.sendRedirect(urlDownload);
%>