<%-- // All source code is the intellectual property of Idetix Incorporated // and cannot be copied, distributed, or modified in any manner // without the expressed written permission of Idetix Incorporated // or its successors. // // Copyright (C) 2000-2001 Idetix Incorporated // All rights reserved. // // $Archive: Q:/PDG Current/archives/Current/tang/www/revize/util/content_support_setup.jsp-arc $ // $Revision: 1.3 $ // $Date: 19 Jun 2003 09:13:08 $ // $Author: aray $ Be careful editting this file! Careful construction of this include ensures the basic revize setup is completed, and that the include is non-intrusive, ESPECIALLY with consideration for new lines, etc. ***** PLEASE NOTE ***** Viewing source of processed html files is easier WITHOUT extra blank lines. ***** WHAT THIS MEANS ***** Please don't start the jsp code on a new line to look better in this file. This produces too many blank lines in the output html page. Note how this jsp comment ends and the next chunk of jsp code begins. Please put blank lines INSIDE the jsp code so they are not output to the client. What this include does: ---------------------- Set up the "rz" object for use both in JSP files that this file is included in, as well as in taglibs. To accomplish this, create the object (if not already created) in the page scope. This will ensure clean up of the object after use for the given page. IMPORTANT NOTE: This JSP MUST be inserted using the include directive: include file="/util/contentSupportSetup.jsp" *NOT* the XML include, which is of the form This will ensure proper page scope of the objects created. --%><%@ page language="java"%><%@ page import="revize.taglib.content.*,revize.taglib.content.data.*" %><% // set up the ContentSupport class if not already created in the request scope // must be made available to the taglib via the pageContext attribute. RZTagSupport rz = (RZTagSupport) pageContext.getAttribute( ContentSupport.ATTRIBUTE_PAGE_TAG_SUPPORT ); if ( rz == null ) { rz = new RZTagSupport(); pageContext.setAttribute( ContentSupport.ATTRIBUTE_PAGE_TAG_SUPPORT, rz ); } // instance must be named "rz" and "RZ" for backward compibility with older snippets RZTagSupport RZ = rz; %>