<%--
  Copyright 2003 Sun Microsystems, Inc. All rights reserved 
  Use is subject to license terms.
 --%>
<%-- @(#)discussionLiteContent.jsp --%>
<%@page language="java" import="java.text.*, java.util.*, com.sun.portal.search.util.Encoder, com.sun.portal.search.util.DateParser" %>

<%@page errorPage="error.jsp" %>

<%@ taglib uri="/tld/jx.tld" prefix="jx" %>
<%@ taglib uri="/tld/search.tld" prefix="search" %>
<%@ taglib uri="/tld/desktop.tld" prefix="dt" %>
<%@ taglib uri="/tld/desktopProviderContext.tld" prefix="dtpc" %>
<%@ taglib uri="/tld/desktopTheme.tld" prefix="dttheme" %>

<dt:obtainChannel channel="$JSPProvider">
  <dtpc:providerContext>
    <dttheme:getAttribute name="borderColor" id="tBorderColor"/>
    <dttheme:getAttribute name="fontFace" id="tFontFace" />
    <dtpc:getStringProperty key="searchServer" id="searchServer"/> 
    <dtpc:getStringProperty key="dbname" id="dbname"/> 
    <dtpc:getIntegerProperty key="viewHits" id="hitNumber"/>
    <dtpc:getSessionID id="accessToken"/>
    <dtpc:getLocale id="locale"/>

    <%
    /* 
    The default behaviour for links in discussionLite is to display them 
    in the dynamic single container. This behaviour can be customized based
    on where this channel is located on the desktop. Add the pathinfo with the 
    container information to all links.
    */ 
    Map pathInfo = new HashMap();
    pathInfo.put("action", "content");
    pathInfo.put("provider", "JSPDynamicSingleContainer");
    pathInfo.put("JSPDynamicSingleContainer.selectedChannel", "Discussions");
    pathInfo.put("last", "false");
    pageContext.setAttribute("pathInfo", pathInfo);
    %> 
    
    <dtpc:getDesktopURL id="desktopPathInfo" pathinfo="$pathInfo"/>

  </dtpc:providerContext> 
</dt:obtainChannel>

<jx:declare id="tFontFace" type="java.lang.String"/>
<jx:declare id="tBorderColor" type="java.lang.String"/>
<jx:declare id="desktopPathInfo" type="java.lang.String"/>
<jx:declare id="locale" type="java.util.Locale"/>

<search:searchContext>
    <%@ include file= "query.jsp" %>
    <%@ include file= "display.jsp" %>
</search:searchContext>
