<%@ include file="inc/tld.inc" %>
<%@ page import="com.emc.software.constants.Constants" %>
<%@ page import="com.emc.software.util.StringUtil" %>
<% // wb 07/13/06 - This code was added for error pages in websidestory
String errorFlag = "";
String actualUrl_error = (String)request.getAttribute(Constants.CONTENT_FILE_PATH);
if (actualUrl_error!=null && actualUrl_error.indexOf("error")>0) {
errorFlag = request.getServerName()+request.getSession(false).getAttribute("BadURL");
}
// end of changes for error pages
ServletContext servletContext = getServletConfig().getServletContext();
String WebsiteStoryGlobalAccount = (String)servletContext.getInitParameter("WEBSITESTORY_GLOBAL_ACCOUNT");
String keyWord = (String)request.getAttribute("searchKeyWord");
if (request.getAttribute("keyword")!=null)
keyWord = (String)request.getAttribute("keyword");
String resultsCount = (String)request.getAttribute("searchResultCount");
if (resultsCount == null || resultsCount.trim().equals("")) {
resultsCount = "0";
}
%>
<%
// wb 07/13/06 - The business wanted the error pages to be present in different "buckets" in websidestory.
// This code determines if it is an error page and executes the corredt script.
// The code was put in external files to keep this jsp page readable.
if (actualUrl_error!=null && actualUrl_error.indexOf("error")>0) { %>
<% }
else { %>
<% } %>