Index: lams_tool_forum/web/includes/header.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_forum/web/includes/Attic/header.jsp,v diff -u -r1.1 -r1.2 --- lams_tool_forum/web/includes/header.jsp 29 Jun 2005 06:42:20 -0000 1.1 +++ lams_tool_forum/web/includes/header.jsp 27 Jul 2005 05:22:59 -0000 1.2 @@ -1,7 +1,18 @@ <%@ include file="/includes/taglibs.jsp" %> +<% +String protocol = request.getProtocol(); +if(protocol.startsWith("HTTPS")){ + protocol = "https://"; +}else{ + protocol = "http://"; +} +String pathToRoot = protocol+request.getServerName()+":"+request.getServerPort()+request.getContextPath()+"/"; +String pathToShare = protocol+request.getServerName()+":"+request.getServerPort()+request.getContextPath()+"/../../../.."; +%>