<%@page import="java.io.IOException"%> <%@page import="java.util.Properties"%> <%@page import="java.io.FileInputStream"%> <%@ page session="false" buffer="none" %> <%@ page trimDirectiveWhitespaces="true" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@ include file="../includePortalTaglibs.jspf" %> <portal-core:constants/><portal-core:defineObjects/> <% /********************************************************************************************************************************* Render release details from version.properties Render customization shelf from myco.properties ***********************************************************************************************************************************/ /** Config files base path variable defined in WAS. */ String APP_PROP_DIR_PATH = "app.props.dir"; /** version properties. */ String VERSION_PROPERTIES_FILE = "/version.properties"; /** Config files base path absolute location in server. */ String DEFAULT_PROP_LOC = "C:/MyCo/properties"; /** RPTPVERSION : Release version. */ String RPTPVERSION = "rptp.version"; /** RPTPVERSIONDATE : Release Date. */ String RPTPVERSIONDATE = "rptp.version.date"; /** Properties. */ Properties prop=null; String propertyPath = System.getProperty(APP_PROP_DIR_PATH); // Get the default property file location if not configured in WAS Env if (propertyPath == null || propertyPath.equals("")) { propertyPath = DEFAULT_PROP_LOC; } FileInputStream inStream=null; try { // Load a properties file prop = new Properties(); inStream = new FileInputStream(propertyPath + VERSION_PROPERTIES_FILE); prop.load(inStream); inStream.close(); }catch (IOException ex) { ex.printStackTrace(System.err); }finally{ try{ if(inStream!=null){ inStream.close(); } }catch(IOException e){ e.printStackTrace(System.err); } } %> <c:set var="deviceClass" scope="request" value="${wp.clientProfile['DeviceClass']}" /> <c:if test="${deviceClass != 'smartphone'}"> /** myco.footer is defined in WCM */ <portal-navigation:navigation scopeUniqueName="myco.footer"> <portal-navigation:navigationLoop> <span class="versioncss"><%=prop.getProperty(RPTPVERSION)%> - <%=prop.getProperty(RPTPVERSIONDATE)%> | </span> <a href='<portal-navigation:navigationUrl type="link" keepNavigationalState="false" varname="${wpsNavNode}"/>' title='<portal-fmt:title varname="${wpsNavNode}"/>'> <portal-fmt:title varname="${wpsNavNode}"/></a>&nbsp;&nbsp; </portal-navigation:navigationLoop> </portal-navigation:navigation> </c:if> <c:if test="${deviceClass == 'smartphone'}"> <script>window.scrollTo(0, 47);</script> </c:if>