%@ page import="java.util.*, java.text.*, com.Yasna.forum.*, com.Yasna.forum.util.*" %> <%@ include file="../authenticate_i.jsp" %> <% ///////////// // Header // The header file looks for the following variables. String pageTitle = "Boulder Biodiesel Forums"; %> <%@ include file="../header_i.jsp" %> <% // get parameters boolean logout = ParamUtils.getBooleanParameter(request, "logout"); int forumID = ParamUtils.getIntParameter(request, "forum", -1); long lastVisited = SkinUtils.getLastVisited(request, response); %> <% // logout if requested: if (logout) { SkinUtils.removeUserAuthorization(request, response); response.sendRedirect("index.jsp"); return; } %> <% // get a forum factory and forum iterator Iterator forumIterator = forumFactory.forums(); %> <% ///////////// // Toolbar // The toolbar file looks for the following variables. To make a particular // "button" not appear, set a variable to null. boolean showToolbar = true; String viewLink = null; String postLink = null; String replyLink = null; String searchLink = null; // we can show a link to a user account if the user is logged in (handled // in the toolbar jsp) String accountLink = "../forum/userAccount.jsp"; %> <%@ include file="../toolbar_i.jsp" %> <% //////////////////// // Breadcrumb bar // The breadcrumb file looks for the variable "breadcrumbs" which // represents a navigational path, ie "Home > My Forum > Hello World" String[][] breadcrumbs = { { "Home", "../" }, { "Forums", "" } }; %> <%@ include file="../breadcrumb_i.jsp" %> <%@ include file="../forum/search_i.jsp" %>
|
<%-- begin main content --%>
<% // check to see if there are no forums if( !forumIterator.hasNext() ) { %>
|
<%@ include file="../footer_i.jsp" %>