its a very big files. i dont think i can paste.. anyways i try . TY
included jsp
<%--
--%>
<%@ page language="java" import="java.lang.*,java.util.*" %>
<%@ page buffer = "32kb" %>
<%@ page import="com.wolterskluwer.atlas.crn.CRNSearcherConst"%>
<%@ page import="com.wolterskluwer.eip.crn.PortalHelper" %>
<%@ page import="com.wolterskluwer.eip.crn.MonitorManager" %>
<%@ page import="com.wolterskluwer.eip.crn.TrackerSort" %>
<%@ page import="com.wolterskluwer.eip.common.tools.log.Log" %>
<%@ taglib uri="documentProvider.tld" prefix="dp" %>
<%@ taglib uri="documentCache.tld" prefix="dc" %>
<%@ taglib uri="diag.tld" prefix="diag" %>
<%@ taglib uri="oscache.tld" prefix="oscache" %>
<jsp:useBean id="userProfile" type="com.wolterskluwer.eip.crn.beans.UserProfile" scope="session" />
<%
MonitorManager monMan;
monMan = (MonitorManager) request.getAttribute("monMan");
%>
<%-- define link for help page --%>
<%
StringBuffer mycrn_helplink = new StringBuffer(64);
mycrn_helplink.append("javascript:reSetTimerTop(),displayPopupWindow('" + PortalHelper.getContextWebHelpURL("Publications-search.htm") + "'," + (String)application.getAttribute(CRNSearcherConst.APPLICATION.HELPPAGES_DIMENSIONS) + ")");
//check if it is content viewer header,
//which is a litte bit diferent then other crn headers
boolean isContentViewerHeader = false;
if(request.getParameter("contentViewerHeader") != null &&
request.getParameter("contentViewerHeader").compareTo("true") == 0){
isContentViewerHeader = true;
}
%>
<!-- TOP MATTER -->
<DIV id="top-matter">
<DIV class="top-left-col">
<jsp:include page="../siteid.jsp" />
</DIV>
<DIV class="top-middle-col">
<jsp:include page="headermiddlecol.jsp" />
</DIV>
<% if (!isContentViewerHeader){ %>
<jsp:include page="../ssouserprofileproductaccess.jsp" />
<% } %>
<DIV id=search-strip>
<% if (!(request.getParameter("doNotShowSearchStrip") != null && request.getParameter("doNotShowSearchStrip").compareTo("true") == 0)){ %>
<DIV class=left-col>
<%-- --%>
<% Log.debug("crn_mainheader.jsp: before using cache tag"); %>
<% Log.debug("crn_mainheader.jsp: key=[request.cachekey_userid]; request.cachekey_userid=[" + request.getAttribute("cachekey_userid") + "]"); %>
<% String key = "CrnMainHeader"+userProfile.getUserId()+request.getAttribute("ignoreaccessrights");%>
<% Set keyList = (Set) application.getAttribute("CacheKeyList");
if(keyList!=null) {
keyList.add(key);
application.setAttribute("CacheKeyList", keyList);
}
%>
<oscache:cache key="<%=key%>" scope="application" groups="<%=userProfile.getUserId()%>" refresh="<%=PortalHelper.getWebCacheRefresh()%>">
<% Log.debug("CRN cache: [crn_mainheader.jsp].[globalnavdropdown] - is recalculating"); %>
<% monMan.start("WSCRN.MyCRN.Header.GlobalNavCategory (XSLT)"); %>
<dp:documentProvider id="globalNavCategory" scope="page" pagerId="htmlPager">
<dc:cacheDocument cacheName="<%= CRNSearcherConst.APPLICATION.EXTENTED_CSH_DOCUMENTPROVIDER_CACHE %>">
<csh:cshextract DOMDocumentID="<%= CRNSearcherConst.APPLICATION.EXTENDED_CSH_DOM_ID %>" DOMDocumentScope="application"/>
</dc:cacheDocument>
<%-- apply xsl filter to get rid of unsubscribed nodes --%>
<dp:xmlTransform isXSLTFilterEnabled="true"
xslFileUri="<%= PortalHelper.getCSHFilterXSLFileUrl() %>"
>
<dp:xmlParam name="subscribedProductsAssm" value="<%= userProfile.getProductsSubscribedAssm() %>" />
<dp:xmlParam name="listItemSeparator" value="<%= userProfile.LISTITEM_SEPARATOR %>" />
<dp:xmlParam name="showUndefinedPubs" value="false" />
<dp:xmlParam name="nav-type-toShow" value="Global" />
<%-- diagnostic mode when access rights have to be ignored --%>
<diag:paramCheck name="<%= CRNSearcherConst.DIAG.IGNOREACCESSRIGHTS %>" value="on">
<dp:xmlParam name="showNotSubscribedPubs" value="true" />
</diag:paramCheck>
</dp:xmlTransform>
<%-- generate drop-down box with only subscribed nodes that have attribute nav-type equal to Global --%>
<dp:xmlTransform isXSLTFilterEnabled="true" xslFileUri="<%= PortalHelper.getGlobalNavigationDropDownXslFile() %>"
dtdUri="<%= PortalHelper.getDTDUrl(PortalHelper.getAssembliesCollectionId()) %>" >
<dp:xmlParam name="CRNSearcherConst.URL.GLOBAL_NAV_PATH" value="<%= CRNSearcherConst.URL.GLOBAL_NAV_PATH %>" />
<dp:xmlParam name="CRNSearcherConst.URL.GLOBAL_NAV_LINK" value="<%= CRNSearcherConst.URL.GLOBAL_NAV_LINK %>" />
<%-- diagnostic mode when access rights have to be ignored --%>
<diag:paramCheck name="<%= CRNSearcherConst.DIAG.IGNOREACCESSRIGHTS %>" value="on">
<dp:xmlParam name="ignoreaccessrights" value="true" />
</diag:paramCheck>
</dp:xmlTransform>
</dp:documentProvider>
<% monMan.stop("WSCRN.MyCRN.Header.GlobalNavCategory (XSLT)"); %>
<form name="sites" style="margin-top: -2px;margin-left:5px;">
<select name="browseCRN" onchange="goToURL()">
<option value="0" selected>Browse the CRN...</option>
<option value="mycrn.jsp">My CRN</option>
<%
List trackerCatList = (List) application.getAttribute("TrackerCategoryList");
String prodSub = userProfile.getProductsSubscribed();
if(TrackerSort.hasTrackerSubscribed(trackerCatList, prodSub)) {
%><option value="mytracker.jsp">My Trackers</option><%
}
%>
<%-- display dynamic global navigation options --%>
<dp:displayPage ifInPlaceThenDisplay="true" scope="page" documentProviderId="globalNavCategoryDocumentProvider" />
</select>
</form>
</oscache:cache>
<%-- --%>
<IMG height=17 alt="" src="../img/label_search.gif" width=50>
</DIV>
<DIV class=middle-col style="width:330px;">
<% monMan.start("WSCRN.MyCRN.SimpleSearchDisplay-searcher.AllFile"); %>
<jsp:include page="../search/searcher/simpleSearchDisplay-searcher.jsp">
<jsp:param name="<%= CRNSearcherConst.URL.FORM_ACTION_URL %>" value="<%= CRNSearcherConst.JSPFILES.SEARCHRESULTS_PAGE %>" />
<jsp:param name="<%= CRNSearcherConst.URL.SEARCHMASKFORM_HIDDEN_FIELD %>" value="<%= CRNSearcherConst.JSPFILES.SIMPLESEARCH_MODULE %>" />
</jsp:include>
<% monMan.stop("WSCRN.MyCRN.SimpleSearchDisplay-searcher.AllFile"); %>
</DIV>
<%-- modifed PM 1/4/2006 --%>
<DIV class=right-col
style="
<% if(isContentViewerHeader){ %>
position: absolute;top: -45;right: 2;text-align:right;width:580px;padding:0px;margin:0px;
<%}else{%>
margin-top:-1px;text-align:left;margin-left:0px;
<%}%>">
<% if (isContentViewerHeader){ %>
<jsp:include page="../ssouserprofileproductaccess.jsp" />
<% } %>
<% if (!(request.getParameter("doNotShowSearchHelp") != null && request.getParameter("doNotShowSearchHelp").compareTo("true") == 0)){ %>
<A href="<%= mycrn_helplink.toString() %>" target="_top" style="margin-left:3px;margin-right:3px;">Search Help</A>|<%}%><A href="advancedsearch.jsp" target="_top" style="margin-left:3px;margin-right:3px;">Advanced Search</A>|<A href="<%= CRNSearcherConst.JSPFILES.RULESEARCH_MODULE %>" target="_top" style="margin-left:3px;margin-right:3px;">Rule Search</A>|<A href="savedsearches.jsp" target="_top" style="margin-left:3px;">My Searches</A>
</DIV>
<% } %>
</DIV>
</DIV>
<%--
main jsp--
<%--
<%@ page language="java" %>
<%@ taglib uri="diag.tld" prefix="diag" %>
<%@ page import="com.wolterskluwer.eip.crn.PortalHelper" %>
<%@ page import="com.wolterskluwer.eip.crn.MonitorManager" %>
<%
MonitorManager monMan = new MonitorManager();
monMan.start("WSCRN.ContentViewerTop.TotalTime");
request.setAttribute("monMan",monMan);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<HEAD>
<TITLE>content-viewer-top.html</TITLE>
<!-- characterset is set to ISO-8859-1 to match encoding in docview.xsl that generates document in ISO-8859-1 encoding -->
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" type="text/css" href="../css/content-viewer_screen.css"/>
<link rel="stylesheet" type="text/css" href="../css/global.css">
<script language="javascript" type="text/javascript" src="../jscript/contentviewer.js"></script>
<script type="text/javascript">
var oImgExpand = new Image;
oImgExpand.src = "../img/toc_expand.gif";
var oImgCompact = new Image;
oImgCompact.src = "../img/toc_compact.gif";
function toggleExpand(){
oFrameset = parent.document.getElementById("framesContent");
oImg = document.getElementById("toc-button");
oBut=document.getElementById("s_h_button");
if (oImg.src.indexOf("img/toc_expand.gif")>-1){
oImg.src = oImgCompact.src;
oFrameset.cols = strTemp;
oBut.value="Hide TOC";
}else{
strTemp = oFrameset.cols;
oImg.src = oImgExpand.src;
oFrameset.cols = "0,*"; //changed from 192 to 0 by artp
oBut.value="Show TOC";
}
}
function OpenWindow(strURL, strName, intWidth, intHeight,toolbar){
objPopUp = open( strURL, strName, "toolbar="+toolbar+",width="+intWidth+",height="+intHeight+",scrollbars=yes,resizable=yes,menubar=yes,personalbar=yes,location=yes");
//reSetTimerTop();
}
function printContent(){
parent.frameRight.print();
}
</script>
<script type="text/javascript" src="../jscript/minmax.js"></script>
</HEAD>
<BODY>
<DIV id="content-viewer-top-stretch">
<jsp:include page="../WEB-INF/jspinclude/mainparts/crn_mainheader.jsp" >
<jsp:param name="contentViewerHeader" value="true"/>
</jsp:include>
</div>
<div id="content-viewer-top">
<% monMan.start("WSCRN.ContentViewerTop.ContentViewerHeader"); %>
<jsp:include page="/WEB-INF/jspinclude/contentviewer/contentviewerheader.jsp" />
<% monMan.stop("WSCRN.ContentViewerTop.ContentViewerHeader"); %>
</div>
</BODY>
</HTML>
<% monMan.stop("WSCRN.ContentViewerTop.TotalTime"); %>
<diag:paramCheck notName="showtime">
<%
out.print("<!--");
out.print(monMan.report("\n"));
out.print("-->");
%>
</diag:paramCheck>
<diag:paramCheck name="showtime" value="on">
<%
out.print(monMan.report("<br>"));
%>
</diag:paramCheck>
Message was edited by:
bobz
mycrn_helplink.append("javascript:reSetTimerTop(),displayPopupWindow('" + PortalHelper.getContextWebHelpURL("Publications-search.htm") + "'," + (String)application.getAttribute(CRNSearcherConst.APPLICATION.HELPPAGES_DIMENSIONS) + ")");
i have notice in this part that the two functions are delimited by a comma <,> it must be delimited by a semicolon <;>