<% try { %> <%@ include file="/uni.jsp" %> <%@ page language = "java" %> <%@ page import = "java.sql.*" %> <%@ page import = "java.io.*" %> <%@ page import = "SeBase.SeBaseGlobal" %> <%@ page import = "SWiz.*" %> <%@ page import = "javax.servlet.http.*" %> <% authenticate=new SeBase.CommonAuthenticate(trans); HttpSession session1 =request.getSession(true); if(session1.isNew()) { session1.invalidate(); response.sendRedirect((SeBaseGlobal.getInstance(trans)).A_STR_SE_HTTPROOTPATH+"sebase/common_authenticate.jsp"); } else { try { int f_int_user_id = 0; //for user_id String f_str_user_id = ""; //for user id in string String f_str_str1 = ""; //for path String f_str_firstpage = ""; //for current page String f_str_str = request.getParameter("hid_page_id"); //for page_id f_str_user_id = (String)session.getAttribute("s_user_id"); if ((f_str_user_id != null) && (!f_str_user_id.equals(""))) { f_int_user_id = Integer.parseInt(f_str_user_id); } if(f_int_user_id!=0) { if(f_str_str == null || f_str_str.trim().equals("")) //checking for null-for getting first page { FileNameSettings setting = new FileNameSettings(trans); int l_int_file_index_id = setting.getFileID(f_int_user_id); f_str_str1 = setting.getFileName(l_int_file_index_id); } else { f_str_str1 = f_str_str; } String f_str_subdomain = (String)session.getAttribute("s_sub_domain"); SeBase.SeBaseGlobal f_obj_sebase = SeBaseGlobal.getInstance(trans); SWiz.SWizGlobal f_obj_swiz = SWizGlobal.getInstance(trans); //for swiz object String f_str_file1 = ""; f_str_file1 = f_obj_swiz.A_STR_STAGING_ROOTPATH + f_str_subdomain + System.getProperty("file.separator"); Common.PathBuilder f_obj_path = new Common.PathBuilder(trans); if(!f_obj_path.isValidPhysicalPath(f_str_file1+f_str_str1)) { //file physical path validation fails response.sendRedirect("/sebase/show_mesg.jsp"); return; } File l_obj_src = new File(f_str_file1+f_str_str1); if(!l_obj_src.exists()) { l_obj_src = new File(f_obj_swiz.A_STR_STAGING_ROOTPATH + f_str_subdomain+"_rename" + System.getProperty("file.separator")+f_str_str1); if(!l_obj_src.exists()) { FileNameSettings setting = new FileNameSettings(trans); int l_int_file_index_id = setting.getFileID(f_int_user_id); f_str_str1 = setting.getFileName(l_int_file_index_id); l_obj_src = new File(f_obj_swiz.A_STR_STAGING_ROOTPATH + f_str_subdomain+"_rename" + System.getProperty("file.separator")+f_str_str1); if(!l_obj_src.exists()) { l_obj_src = new File(f_obj_swiz.A_STR_STAGING_ROOTPATH + f_str_subdomain + System.getProperty("file.separator")+f_str_str1); } } } if(l_obj_src.exists()) { FileInputStream l_obj_fis = new FileInputStream(l_obj_src); //InputStream l_obj_fs = l_obj_fis; //for input stream object // file stream to read data from file char l_obj_ch[] = new char[l_obj_fis.available()]; // byte array as data store BufferedReader l_obj_buffrd = new BufferedReader(new InputStreamReader(l_obj_fis,trans.getCharSet())); //for buffering l_obj_buffrd.read(l_obj_ch,0,l_obj_ch.length) ; l_obj_fis.close(); String l_str_file_data = new String(l_obj_ch); int dvWidth = 1400; if(session.getAttribute("s_device_landing_width")!=null) { dvWidth = Integer.parseInt((String)session.getAttribute("s_device_landing_width")); } String subNavigVariationFlag = (String)session.getAttribute("s_subng_variation_flag"); if(subNavigVariationFlag==null) subNavigVariationFlag = ""; String mobileGoBack = "none"; if(!subNavigVariationFlag.equals("c")) { if(dvWidth<=1024) { mobileGoBack = "block"; } %> <%@ include file = "/uni_meta.jsp" %>
<%=trans.getPropValue("Var11925")%>
<%=trans.getPropValue("Var400")%>
<% } out.println(l_str_file_data); } else { session1.invalidate(); response.sendRedirect((SeBaseGlobal.getInstance(trans)).A_STR_SE_HTTPROOTPATH+"sebase/common_authenticate.jsp"); } } else { session1.invalidate(); response.sendRedirect((SeBaseGlobal.getInstance(trans)).A_STR_SE_HTTPROOTPATH+"sebase/common_authenticate.jsp"); } } catch(Exception ex) { String f_str_redir1 = (SeBaseGlobal.getInstance(trans)).A_STR_SE_HTTPROOTPATH+"sebase/common_error.jsp"; %>

<%=trans.getPropValue("Var21164")%>

<% } } //eof else %> <% } catch(Exception exception) { if(exception != null && exception.getMessage() != null && exception.getMessage().equals("INVALID SESSION")) { response.sendRedirect( SeBase.SeBaseGlobal.getInstance( new Trans.Lang2CharsetMap().getTrans( "en" ) ).A_STR_SE_HTTPROOTPATH + "sebase/common_authenticate.jsp"); } else if(exception != null && exception.getMessage() != null && exception.getMessage().equals("NORIDLANG")) { session.setAttribute("s_lang", "en"); response.sendRedirect( SeBase.SeBaseGlobal.getInstance( new Trans.Lang2CharsetMap().getTrans( "en" ) ).A_STR_SE_HTTPROOTPATH + "sebase/show_mesg.jsp"); } } %>