org.apache.jsp.html.portlet.journal.select_005ftemplate_jsp.java Source code

Java tutorial

Introduction

Here is the source code for org.apache.jsp.html.portlet.journal.select_005ftemplate_jsp.java

Source

    package org.apache.jsp.html.portlet.journal;

    import javax.servlet.*;
    import javax.servlet.http.*;
    import javax.servlet.jsp.*;
    import com.liferay.counter.service.CounterLocalServiceUtil;
    import com.liferay.portal.NoSuchUserException;
    import com.liferay.portal.kernel.captcha.CaptchaMaxChallengesException;
    import com.liferay.portal.kernel.captcha.CaptchaTextException;
    import com.liferay.portal.kernel.bean.BeanParamUtil;
    import com.liferay.portal.kernel.bean.BeanPropertiesUtil;
    import com.liferay.portal.kernel.cal.Recurrence;
    import com.liferay.portal.kernel.configuration.Filter;
    import com.liferay.portal.kernel.dao.orm.QueryUtil;
    import com.liferay.portal.kernel.dao.search.DAOParamUtil;
    import com.liferay.portal.kernel.dao.search.DisplayTerms;
    import com.liferay.portal.kernel.dao.search.ResultRow;
    import com.liferay.portal.kernel.dao.search.RowChecker;
    import com.liferay.portal.kernel.dao.search.ScoreSearchEntry;
    import com.liferay.portal.kernel.dao.search.SearchContainer;
    import com.liferay.portal.kernel.dao.search.SearchEntry;
    import com.liferay.portal.kernel.dao.search.TextSearchEntry;
    import com.liferay.portal.kernel.exception.PortalException;
    import com.liferay.portal.kernel.exception.SystemException;
    import com.liferay.portal.kernel.io.unsync.UnsyncStringReader;
    import com.liferay.portal.kernel.json.JSONArray;
    import com.liferay.portal.kernel.json.JSONFactoryUtil;
    import com.liferay.portal.kernel.json.JSONObject;
    import com.liferay.portal.kernel.language.LanguageUtil;
    import com.liferay.portal.kernel.language.LanguageWrapper;
    import com.liferay.portal.kernel.language.UnicodeLanguageUtil;
    import com.liferay.portal.kernel.log.Log;
    import com.liferay.portal.kernel.log.LogFactoryUtil;
    import com.liferay.portal.kernel.log.LogUtil;
    import com.liferay.portal.kernel.messaging.DestinationNames;
    import com.liferay.portal.kernel.messaging.MessageBusUtil;
    import com.liferay.portal.kernel.portlet.DynamicRenderRequest;
    import com.liferay.portal.kernel.portlet.LiferayPortletMode;
    import com.liferay.portal.kernel.portlet.LiferayPortletRequest;
    import com.liferay.portal.kernel.portlet.LiferayPortletResponse;
    import com.liferay.portal.kernel.portlet.LiferayPortletURL;
    import com.liferay.portal.kernel.portlet.LiferayWindowState;
    import com.liferay.portal.kernel.search.Field;
    import com.liferay.portal.kernel.servlet.BrowserSnifferUtil;
    import com.liferay.portal.kernel.servlet.ImageServletTokenUtil;
    import com.liferay.portal.kernel.servlet.ServletContextUtil;
    import com.liferay.portal.kernel.servlet.SessionErrors;
    import com.liferay.portal.kernel.servlet.SessionMessages;
    import com.liferay.portal.kernel.servlet.StringServletResponse;
    import com.liferay.portal.kernel.util.ArrayUtil;
    import com.liferay.portal.kernel.util.BooleanWrapper;
    import com.liferay.portal.kernel.util.BreadcrumbsUtil;
    import com.liferay.portal.kernel.util.CalendarFactoryUtil;
    import com.liferay.portal.kernel.util.CalendarUtil;
    import com.liferay.portal.kernel.util.CharPool;
    import com.liferay.portal.kernel.util.Constants;
    import com.liferay.portal.kernel.util.ContentTypes;
    import com.liferay.portal.kernel.util.DateFormatFactoryUtil;
    import com.liferay.portal.kernel.util.DateUtil;
    import com.liferay.portal.kernel.util.FastDateFormatFactoryUtil;
    import com.liferay.portal.kernel.util.FileUtil;
    import com.liferay.portal.kernel.util.GetterUtil;
    import com.liferay.portal.kernel.util.HtmlUtil;
    import com.liferay.portal.kernel.util.Http;
    import com.liferay.portal.kernel.util.HttpUtil;
    import com.liferay.portal.kernel.util.IntegerWrapper;
    import com.liferay.portal.kernel.util.JavaConstants;
    import com.liferay.portal.kernel.util.KeyValuePair;
    import com.liferay.portal.kernel.util.KeyValuePairComparator;
    import com.liferay.portal.kernel.util.ListUtil;
    import com.liferay.portal.kernel.util.LocaleUtil;
    import com.liferay.portal.kernel.util.LocalizationUtil;
    import com.liferay.portal.kernel.util.LongWrapper;
    import com.liferay.portal.kernel.util.MathUtil;
    import com.liferay.portal.kernel.util.ObjectValuePair;
    import com.liferay.portal.kernel.util.ObjectValuePairComparator;
    import com.liferay.portal.kernel.util.OrderByComparator;
    import com.liferay.portal.kernel.util.OrderedProperties;
    import com.liferay.portal.kernel.util.ParamUtil;
    import com.liferay.portal.kernel.util.PrefsParamUtil;
    import com.liferay.portal.kernel.util.PropertiesParamUtil;
    import com.liferay.portal.kernel.util.PropertiesUtil;
    import com.liferay.portal.kernel.util.PropsKeys;
    import com.liferay.portal.kernel.util.Randomizer;
    import com.liferay.portal.kernel.util.ReleaseInfo;
    import com.liferay.portal.kernel.util.ServerDetector;
    import com.liferay.portal.kernel.util.SetUtil;
    import com.liferay.portal.kernel.util.SortedProperties;
    import com.liferay.portal.kernel.util.StackTraceUtil;
    import com.liferay.portal.kernel.util.StringBundler;
    import com.liferay.portal.kernel.util.StringComparator;
    import com.liferay.portal.kernel.util.StringPool;
    import com.liferay.portal.kernel.util.StringUtil;
    import com.liferay.portal.kernel.util.Time;
    import com.liferay.portal.kernel.util.TimeZoneUtil;
    import com.liferay.portal.kernel.util.UnicodeFormatter;
    import com.liferay.portal.kernel.util.UnicodeProperties;
    import com.liferay.portal.kernel.util.Validator;
    import com.liferay.portal.kernel.workflow.WorkflowConstants;
    import com.liferay.portal.language.LanguageImpl;
    import com.liferay.portal.model.*;
    import com.liferay.portal.model.impl.*;
    import com.liferay.portal.security.auth.AuthTokenUtil;
    import com.liferay.portal.security.auth.PrincipalException;
    import com.liferay.portal.security.permission.ActionKeys;
    import com.liferay.portal.security.permission.PermissionChecker;
    import com.liferay.portal.service.*;
    import com.liferay.portal.service.permission.GroupPermissionUtil;
    import com.liferay.portal.service.permission.LayoutPermissionUtil;
    import com.liferay.portal.service.permission.LayoutPrototypePermissionUtil;
    import com.liferay.portal.service.permission.LayoutSetPrototypePermissionUtil;
    import com.liferay.portal.service.permission.PortletPermissionUtil;
    import com.liferay.portal.struts.StrutsUtil;
    import com.liferay.portal.theme.PortletDisplay;
    import com.liferay.portal.theme.ThemeDisplay;
    import com.liferay.portal.util.ContentUtil;
    import com.liferay.portal.util.CookieKeys;
    import com.liferay.portal.util.JavaScriptBundleUtil;
    import com.liferay.portal.util.Portal;
    import com.liferay.portal.util.PortalUtil;
    import com.liferay.portal.util.PortletCategoryKeys;
    import com.liferay.portal.util.PortletKeys;
    import com.liferay.portal.util.PrefsPropsUtil;
    import com.liferay.portal.util.PropsUtil;
    import com.liferay.portal.util.PropsValues;
    import com.liferay.portal.util.SessionClicks;
    import com.liferay.portal.util.SessionTreeJSClicks;
    import com.liferay.portal.util.ShutdownUtil;
    import com.liferay.portal.util.WebAppPool;
    import com.liferay.portal.util.WebKeys;
    import com.liferay.portal.util.comparator.PortletCategoryComparator;
    import com.liferay.portal.util.comparator.PortletTitleComparator;
    import com.liferay.portlet.InvokerPortlet;
    import com.liferay.portlet.PortalPreferences;
    import com.liferay.portlet.PortletConfigFactoryUtil;
    import com.liferay.portlet.PortletInstanceFactoryUtil;
    import com.liferay.portlet.PortletPreferencesFactoryUtil;
    import com.liferay.portlet.PortletResponseImpl;
    import com.liferay.portlet.PortletSetupUtil;
    import com.liferay.portlet.PortletURLImpl;
    import com.liferay.portlet.PortletURLUtil;
    import com.liferay.portlet.RenderParametersPool;
    import com.liferay.portlet.RenderRequestFactory;
    import com.liferay.portlet.RenderRequestImpl;
    import com.liferay.portlet.RenderResponseFactory;
    import com.liferay.portlet.RenderResponseImpl;
    import com.liferay.portlet.UserAttributes;
    import com.liferay.portlet.portletconfiguration.util.PortletConfigurationUtil;
    import com.liferay.util.CreditCard;
    import com.liferay.util.Encryptor;
    import com.liferay.util.JS;
    import com.liferay.util.PKParser;
    import com.liferay.util.PwdGenerator;
    import com.liferay.util.State;
    import com.liferay.util.StateUtil;
    import com.liferay.util.TextFormatter;
    import com.liferay.util.UniqueList;
    import com.liferay.util.format.PhoneNumberUtil;
    import com.liferay.util.log4j.Levels;
    import com.liferay.util.mail.InternetAddressUtil;
    import com.liferay.util.portlet.PortletRequestUtil;
    import com.liferay.util.servlet.DynamicServletRequest;
    import com.liferay.util.servlet.SessionParameters;
    import com.liferay.util.servlet.UploadException;
    import com.liferay.util.xml.XMLFormatter;
    import java.io.Serializable;
    import java.math.BigDecimal;
    import java.net.InetAddress;
    import java.net.UnknownHostException;
    import java.text.DateFormat;
    import java.text.DecimalFormat;
    import java.text.Format;
    import java.text.MessageFormat;
    import java.text.NumberFormat;
    import java.text.SimpleDateFormat;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Calendar;
    import java.util.Collection;
    import java.util.Collections;
    import java.util.Currency;
    import java.util.Date;
    import java.util.Enumeration;
    import java.util.GregorianCalendar;
    import java.util.HashMap;
    import java.util.HashSet;
    import java.util.Iterator;
    import java.util.LinkedHashMap;
    import java.util.LinkedHashSet;
    import java.util.List;
    import java.util.Locale;
    import java.util.Map;
    import java.util.MissingResourceException;
    import java.util.Properties;
    import java.util.ResourceBundle;
    import java.util.Set;
    import java.util.Stack;
    import java.util.TimeZone;
    import java.util.TreeMap;
    import java.util.TreeSet;
    import javax.portlet.MimeResponse;
    import javax.portlet.PortletConfig;
    import javax.portlet.PortletContext;
    import javax.portlet.PortletException;
    import javax.portlet.PortletMode;
    import javax.portlet.PortletPreferences;
    import javax.portlet.PortletRequest;
    import javax.portlet.PortletResponse;
    import javax.portlet.PortletSession;
    import javax.portlet.PortletURL;
    import javax.portlet.RenderRequest;
    import javax.portlet.RenderResponse;
    import javax.portlet.ResourceURL;
    import javax.portlet.UnavailableException;
    import javax.portlet.ValidatorException;
    import javax.portlet.WindowState;
    import org.apache.commons.math.util.MathUtils;
    import org.apache.struts.Globals;
    import com.liferay.portal.kernel.xml.Document;
    import com.liferay.portal.kernel.xml.Element;
    import com.liferay.portal.kernel.xml.Node;
    import com.liferay.portal.kernel.xml.SAXReaderUtil;
    import com.liferay.portal.kernel.xml.XPath;
    import com.liferay.portal.util.LayoutLister;
    import com.liferay.portal.util.LayoutView;
    import com.liferay.portlet.asset.NoSuchEntryException;
    import com.liferay.portlet.asset.model.AssetRenderer;
    import com.liferay.portlet.asset.model.AssetRendererFactory;
    import com.liferay.portlet.asset.service.AssetEntryLocalServiceUtil;
    import com.liferay.portlet.documentlibrary.util.DLUtil;
    import com.liferay.portlet.journal.ArticleContentException;
    import com.liferay.portlet.journal.ArticleDisplayDateException;
    import com.liferay.portlet.journal.ArticleExpirationDateException;
    import com.liferay.portlet.journal.ArticleIdException;
    import com.liferay.portlet.journal.ArticleSmallImageNameException;
    import com.liferay.portlet.journal.ArticleSmallImageSizeException;
    import com.liferay.portlet.journal.ArticleTitleException;
    import com.liferay.portlet.journal.ArticleTypeException;
    import com.liferay.portlet.journal.ArticleVersionException;
    import com.liferay.portlet.journal.DuplicateArticleIdException;
    import com.liferay.portlet.journal.DuplicateFeedIdException;
    import com.liferay.portlet.journal.DuplicateStructureIdException;
    import com.liferay.portlet.journal.DuplicateTemplateIdException;
    import com.liferay.portlet.journal.FeedContentFieldException;
    import com.liferay.portlet.journal.FeedDescriptionException;
    import com.liferay.portlet.journal.FeedIdException;
    import com.liferay.portlet.journal.FeedNameException;
    import com.liferay.portlet.journal.FeedTargetLayoutFriendlyUrlException;
    import com.liferay.portlet.journal.FeedTargetPortletIdException;
    import com.liferay.portlet.journal.NoSuchArticleException;
    import com.liferay.portlet.journal.NoSuchStructureException;
    import com.liferay.portlet.journal.NoSuchTemplateException;
    import com.liferay.portlet.journal.RequiredStructureException;
    import com.liferay.portlet.journal.RequiredTemplateException;
    import com.liferay.portlet.journal.StructureDescriptionException;
    import com.liferay.portlet.journal.StructureIdException;
    import com.liferay.portlet.journal.StructureInheritanceException;
    import com.liferay.portlet.journal.StructureNameException;
    import com.liferay.portlet.journal.StructureXsdException;
    import com.liferay.portlet.journal.TemplateDescriptionException;
    import com.liferay.portlet.journal.TemplateIdException;
    import com.liferay.portlet.journal.TemplateNameException;
    import com.liferay.portlet.journal.TemplateSmallImageNameException;
    import com.liferay.portlet.journal.TemplateSmallImageSizeException;
    import com.liferay.portlet.journal.TemplateXslException;
    import com.liferay.portlet.journal.action.EditArticleAction;
    import com.liferay.portlet.journal.model.JournalArticle;
    import com.liferay.portlet.journal.model.JournalArticleConstants;
    import com.liferay.portlet.journal.model.JournalArticleDisplay;
    import com.liferay.portlet.journal.model.JournalArticleResource;
    import com.liferay.portlet.journal.model.JournalFeed;
    import com.liferay.portlet.journal.model.JournalFeedConstants;
    import com.liferay.portlet.journal.model.JournalStructure;
    import com.liferay.portlet.journal.model.JournalStructureConstants;
    import com.liferay.portlet.journal.model.JournalTemplate;
    import com.liferay.portlet.journal.model.JournalTemplateConstants;
    import com.liferay.portlet.journal.model.impl.JournalArticleImpl;
    import com.liferay.portlet.journal.search.ArticleDisplayTerms;
    import com.liferay.portlet.journal.search.ArticleSearch;
    import com.liferay.portlet.journal.search.ArticleSearchTerms;
    import com.liferay.portlet.journal.search.FeedDisplayTerms;
    import com.liferay.portlet.journal.search.FeedSearch;
    import com.liferay.portlet.journal.search.FeedSearchTerms;
    import com.liferay.portlet.journal.search.StructureDisplayTerms;
    import com.liferay.portlet.journal.search.StructureSearch;
    import com.liferay.portlet.journal.search.StructureSearchTerms;
    import com.liferay.portlet.journal.search.TemplateDisplayTerms;
    import com.liferay.portlet.journal.search.TemplateSearch;
    import com.liferay.portlet.journal.search.TemplateSearchTerms;
    import com.liferay.portlet.journal.service.JournalArticleLocalServiceUtil;
    import com.liferay.portlet.journal.service.JournalArticleResourceLocalServiceUtil;
    import com.liferay.portlet.journal.service.JournalFeedLocalServiceUtil;
    import com.liferay.portlet.journal.service.JournalStructureLocalServiceUtil;
    import com.liferay.portlet.journal.service.JournalTemplateLocalServiceUtil;
    import com.liferay.portlet.journal.service.permission.JournalArticlePermission;
    import com.liferay.portlet.journal.service.permission.JournalFeedPermission;
    import com.liferay.portlet.journal.service.permission.JournalPermission;
    import com.liferay.portlet.journal.service.permission.JournalStructurePermission;
    import com.liferay.portlet.journal.service.permission.JournalTemplatePermission;
    import com.liferay.portlet.journal.util.JournalUtil;
    import com.liferay.portlet.journal.webdav.JournalWebDAVStorageImpl;
    import com.liferay.portlet.journalcontent.util.JournalContentUtil;
    import com.liferay.util.RSSUtil;

    public final class select_005ftemplate_jsp extends org.apache.jasper.runtime.HttpJspBase
            implements org.apache.jasper.runtime.JspSourceDependent {

        private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();

        private static java.util.List _jspx_dependants;

        static {
            _jspx_dependants = new java.util.ArrayList(28);
            _jspx_dependants.add("/html/portlet/journal/init.jsp");
            _jspx_dependants.add("/html/portlet/init.jsp");
            _jspx_dependants.add("/html/common/init.jsp");
            _jspx_dependants.add("/html/common/init-ext.jsp");
            _jspx_dependants.add("/html/portlet/init-ext.jsp");
            _jspx_dependants.add("/html/portlet/journal/template_search_results.jspf");
            _jspx_dependants.add("/WEB-INF/tld/displaytag.tld");
            _jspx_dependants.add("/WEB-INF/tld/c.tld");
            _jspx_dependants.add("/WEB-INF/tld/fmt.tld");
            _jspx_dependants.add("/WEB-INF/tld/fn.tld");
            _jspx_dependants.add("/WEB-INF/tld/sql.tld");
            _jspx_dependants.add("/WEB-INF/tld/x.tld");
            _jspx_dependants.add("/WEB-INF/tld/liferay-portlet.tld");
            _jspx_dependants.add("/WEB-INF/tld/liferay-aui.tld");
            _jspx_dependants.add("/WEB-INF/tld/liferay-portlet-ext.tld");
            _jspx_dependants.add("/WEB-INF/tld/liferay-security.tld");
            _jspx_dependants.add("/WEB-INF/tld/liferay-theme.tld");
            _jspx_dependants.add("/WEB-INF/tld/liferay-ui.tld");
            _jspx_dependants.add("/WEB-INF/tld/liferay-util.tld");
            _jspx_dependants.add("/WEB-INF/tld/struts-bean.tld");
            _jspx_dependants.add("/WEB-INF/tld/struts-bean-el.tld");
            _jspx_dependants.add("/WEB-INF/tld/struts-html.tld");
            _jspx_dependants.add("/WEB-INF/tld/struts-html-el.tld");
            _jspx_dependants.add("/WEB-INF/tld/struts-logic.tld");
            _jspx_dependants.add("/WEB-INF/tld/struts-logic-el.tld");
            _jspx_dependants.add("/WEB-INF/tld/struts-nested.tld");
            _jspx_dependants.add("/WEB-INF/tld/struts-tiles.tld");
            _jspx_dependants.add("/WEB-INF/tld/struts-tiles-el.tld");
        }

        private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fliferay_002dtheme_005fdefineObjects_005fnobody;
        private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fportlet_005fdefineObjects_005fnobody;
        private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fliferay_002dportlet_005frenderURL_0026_005fvarImpl;
        private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fportlet_005fparam_0026_005fvalue_005fname_005fnobody;
        private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005faui_005fform_0026_005fname_005fmethod_005faction;
        private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fliferay_002dui_005fheader_0026_005ftitle_005fnobody;
        private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fliferay_002dui_005fsearch_002dform_0026_005fsearchContainer_005fpage_005fnobody;
        private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fliferay_002dui_005fsearch_002diterator_0026_005fsearchContainer_005fnobody;
        private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005faui_005fscript;
        private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fportlet_005fnamespace_005fnobody;

        private javax.el.ExpressionFactory _el_expressionfactory;
        private org.apache.AnnotationProcessor _jsp_annotationprocessor;

        public Object getDependants() {
            return _jspx_dependants;
        }

        public void _jspInit() {
            _005fjspx_005ftagPool_005fliferay_002dtheme_005fdefineObjects_005fnobody = org.apache.jasper.runtime.TagHandlerPool
                    .getTagHandlerPool(getServletConfig());
            _005fjspx_005ftagPool_005fportlet_005fdefineObjects_005fnobody = org.apache.jasper.runtime.TagHandlerPool
                    .getTagHandlerPool(getServletConfig());
            _005fjspx_005ftagPool_005fliferay_002dportlet_005frenderURL_0026_005fvarImpl = org.apache.jasper.runtime.TagHandlerPool
                    .getTagHandlerPool(getServletConfig());
            _005fjspx_005ftagPool_005fportlet_005fparam_0026_005fvalue_005fname_005fnobody = org.apache.jasper.runtime.TagHandlerPool
                    .getTagHandlerPool(getServletConfig());
            _005fjspx_005ftagPool_005faui_005fform_0026_005fname_005fmethod_005faction = org.apache.jasper.runtime.TagHandlerPool
                    .getTagHandlerPool(getServletConfig());
            _005fjspx_005ftagPool_005fliferay_002dui_005fheader_0026_005ftitle_005fnobody = org.apache.jasper.runtime.TagHandlerPool
                    .getTagHandlerPool(getServletConfig());
            _005fjspx_005ftagPool_005fliferay_002dui_005fsearch_002dform_0026_005fsearchContainer_005fpage_005fnobody = org.apache.jasper.runtime.TagHandlerPool
                    .getTagHandlerPool(getServletConfig());
            _005fjspx_005ftagPool_005fliferay_002dui_005fsearch_002diterator_0026_005fsearchContainer_005fnobody = org.apache.jasper.runtime.TagHandlerPool
                    .getTagHandlerPool(getServletConfig());
            _005fjspx_005ftagPool_005faui_005fscript = org.apache.jasper.runtime.TagHandlerPool
                    .getTagHandlerPool(getServletConfig());
            _005fjspx_005ftagPool_005fportlet_005fnamespace_005fnobody = org.apache.jasper.runtime.TagHandlerPool
                    .getTagHandlerPool(getServletConfig());
            _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext())
                    .getExpressionFactory();
            _jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext()
                    .getAttribute(org.apache.AnnotationProcessor.class.getName());
        }

        public void _jspDestroy() {
            _005fjspx_005ftagPool_005fliferay_002dtheme_005fdefineObjects_005fnobody.release();
            _005fjspx_005ftagPool_005fportlet_005fdefineObjects_005fnobody.release();
            _005fjspx_005ftagPool_005fliferay_002dportlet_005frenderURL_0026_005fvarImpl.release();
            _005fjspx_005ftagPool_005fportlet_005fparam_0026_005fvalue_005fname_005fnobody.release();
            _005fjspx_005ftagPool_005faui_005fform_0026_005fname_005fmethod_005faction.release();
            _005fjspx_005ftagPool_005fliferay_002dui_005fheader_0026_005ftitle_005fnobody.release();
            _005fjspx_005ftagPool_005fliferay_002dui_005fsearch_002dform_0026_005fsearchContainer_005fpage_005fnobody
                    .release();
            _005fjspx_005ftagPool_005fliferay_002dui_005fsearch_002diterator_0026_005fsearchContainer_005fnobody
                    .release();
            _005fjspx_005ftagPool_005faui_005fscript.release();
            _005fjspx_005ftagPool_005fportlet_005fnamespace_005fnobody.release();
        }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;


    try {
      response.setContentType("text/html; charset=UTF-8");
      pageContext = _jspxFactory.getPageContext(this, request, response,
               null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;


/**
 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

      out.write('\n');
      out.write('\n');

/**
 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

      out.write('\n');
      out.write('\n');

/**
 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

      out.write('\n');
      out.write('\n');

/**
 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      //  liferay-theme:defineObjects
      com.liferay.taglib.theme.DefineObjectsTag _jspx_th_liferay_002dtheme_005fdefineObjects_005f0 = (com.liferay.taglib.theme.DefineObjectsTag) _005fjspx_005ftagPool_005fliferay_002dtheme_005fdefineObjects_005fnobody.get(com.liferay.taglib.theme.DefineObjectsTag.class);
      _jspx_th_liferay_002dtheme_005fdefineObjects_005f0.setPageContext(_jspx_page_context);
      _jspx_th_liferay_002dtheme_005fdefineObjects_005f0.setParent(null);
      int _jspx_eval_liferay_002dtheme_005fdefineObjects_005f0 = _jspx_th_liferay_002dtheme_005fdefineObjects_005f0.doStartTag();
      if (_jspx_th_liferay_002dtheme_005fdefineObjects_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
        _005fjspx_005ftagPool_005fliferay_002dtheme_005fdefineObjects_005fnobody.reuse(_jspx_th_liferay_002dtheme_005fdefineObjects_005f0);
        return;
      }
      _005fjspx_005ftagPool_005fliferay_002dtheme_005fdefineObjects_005fnobody.reuse(_jspx_th_liferay_002dtheme_005fdefineObjects_005f0);
      com.liferay.portal.theme.ThemeDisplay themeDisplay = null;
      com.liferay.portal.model.Company company = null;
      com.liferay.portal.model.Account account = null;
      com.liferay.portal.model.User user = null;
      com.liferay.portal.model.User realUser = null;
      com.liferay.portal.model.Contact contact = null;
      com.liferay.portal.model.Layout layout = null;
      java.util.List layouts = null;
      java.lang.Long plid = null;
      com.liferay.portal.model.LayoutTypePortlet layoutTypePortlet = null;
      java.lang.Long scopeGroupId = null;
      com.liferay.portal.security.permission.PermissionChecker permissionChecker = null;
      java.util.Locale locale = null;
      java.util.TimeZone timeZone = null;
      com.liferay.portal.model.Theme theme = null;
      com.liferay.portal.model.ColorScheme colorScheme = null;
      com.liferay.portal.theme.PortletDisplay portletDisplay = null;
      java.lang.Long portletGroupId = null;
      themeDisplay = (com.liferay.portal.theme.ThemeDisplay) _jspx_page_context.findAttribute("themeDisplay");
      company = (com.liferay.portal.model.Company) _jspx_page_context.findAttribute("company");
      account = (com.liferay.portal.model.Account) _jspx_page_context.findAttribute("account");
      user = (com.liferay.portal.model.User) _jspx_page_context.findAttribute("user");
      realUser = (com.liferay.portal.model.User) _jspx_page_context.findAttribute("realUser");
      contact = (com.liferay.portal.model.Contact) _jspx_page_context.findAttribute("contact");
      layout = (com.liferay.portal.model.Layout) _jspx_page_context.findAttribute("layout");
      layouts = (java.util.List) _jspx_page_context.findAttribute("layouts");
      plid = (java.lang.Long) _jspx_page_context.findAttribute("plid");
      layoutTypePortlet = (com.liferay.portal.model.LayoutTypePortlet) _jspx_page_context.findAttribute("layoutTypePortlet");
      scopeGroupId = (java.lang.Long) _jspx_page_context.findAttribute("scopeGroupId");
      permissionChecker = (com.liferay.portal.security.permission.PermissionChecker) _jspx_page_context.findAttribute("permissionChecker");
      locale = (java.util.Locale) _jspx_page_context.findAttribute("locale");
      timeZone = (java.util.TimeZone) _jspx_page_context.findAttribute("timeZone");
      theme = (com.liferay.portal.model.Theme) _jspx_page_context.findAttribute("theme");
      colorScheme = (com.liferay.portal.model.ColorScheme) _jspx_page_context.findAttribute("colorScheme");
      portletDisplay = (com.liferay.portal.theme.PortletDisplay) _jspx_page_context.findAttribute("portletDisplay");
      portletGroupId = (java.lang.Long) _jspx_page_context.findAttribute("portletGroupId");
      out.write('\n');
      out.write('\n');

/**
 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

      out.write('\n');
      out.write('\n');
      //  portlet:defineObjects
      com.liferay.taglib.portlet.DefineObjectsTag _jspx_th_portlet_005fdefineObjects_005f0 = (com.liferay.taglib.portlet.DefineObjectsTag) _005fjspx_005ftagPool_005fportlet_005fdefineObjects_005fnobody.get(com.liferay.taglib.portlet.DefineObjectsTag.class);
      _jspx_th_portlet_005fdefineObjects_005f0.setPageContext(_jspx_page_context);
      _jspx_th_portlet_005fdefineObjects_005f0.setParent(null);
      int _jspx_eval_portlet_005fdefineObjects_005f0 = _jspx_th_portlet_005fdefineObjects_005f0.doStartTag();
      if (_jspx_th_portlet_005fdefineObjects_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
        _005fjspx_005ftagPool_005fportlet_005fdefineObjects_005fnobody.reuse(_jspx_th_portlet_005fdefineObjects_005f0);
        return;
      }
      _005fjspx_005ftagPool_005fportlet_005fdefineObjects_005fnobody.reuse(_jspx_th_portlet_005fdefineObjects_005f0);
      javax.portlet.ActionRequest actionRequest = null;
      javax.portlet.ActionResponse actionResponse = null;
      javax.portlet.EventRequest eventRequest = null;
      javax.portlet.EventResponse eventResponse = null;
      javax.portlet.PortletConfig portletConfig = null;
      java.lang.String portletName = null;
      javax.portlet.PortletPreferences portletPreferences = null;
      java.util.Map portletPreferencesValues = null;
      javax.portlet.PortletSession portletSession = null;
      java.util.Map portletSessionScope = null;
      javax.portlet.RenderRequest renderRequest = null;
      javax.portlet.RenderResponse renderResponse = null;
      javax.portlet.ResourceRequest resourceRequest = null;
      javax.portlet.ResourceResponse resourceResponse = null;
      actionRequest = (javax.portlet.ActionRequest) _jspx_page_context.findAttribute("actionRequest");
      actionResponse = (javax.portlet.ActionResponse) _jspx_page_context.findAttribute("actionResponse");
      eventRequest = (javax.portlet.EventRequest) _jspx_page_context.findAttribute("eventRequest");
      eventResponse = (javax.portlet.EventResponse) _jspx_page_context.findAttribute("eventResponse");
      portletConfig = (javax.portlet.PortletConfig) _jspx_page_context.findAttribute("portletConfig");
      portletName = (java.lang.String) _jspx_page_context.findAttribute("portletName");
      portletPreferences = (javax.portlet.PortletPreferences) _jspx_page_context.findAttribute("portletPreferences");
      portletPreferencesValues = (java.util.Map) _jspx_page_context.findAttribute("portletPreferencesValues");
      portletSession = (javax.portlet.PortletSession) _jspx_page_context.findAttribute("portletSession");
      portletSessionScope = (java.util.Map) _jspx_page_context.findAttribute("portletSessionScope");
      renderRequest = (javax.portlet.RenderRequest) _jspx_page_context.findAttribute("renderRequest");
      renderResponse = (javax.portlet.RenderResponse) _jspx_page_context.findAttribute("renderResponse");
      resourceRequest = (javax.portlet.ResourceRequest) _jspx_page_context.findAttribute("resourceRequest");
      resourceResponse = (javax.portlet.ResourceResponse) _jspx_page_context.findAttribute("resourceResponse");
      out.write('\n');
      out.write('\n');

WindowState windowState = null;
PortletMode portletMode = null;

PortletURL currentURLObj = null;

if (renderRequest != null) {
   windowState = renderRequest.getWindowState();
   portletMode = renderRequest.getPortletMode();

   currentURLObj = PortletURLUtil.getCurrent(renderRequest, renderResponse);
}
else if (resourceRequest != null) {
   windowState = resourceRequest.getWindowState();
   portletMode = resourceRequest.getPortletMode();

   currentURLObj = PortletURLUtil.getCurrent(resourceRequest, resourceResponse);
}

String currentURL = currentURLObj.toString();
//String currentURL = PortalUtil.getCurrentURL(request);

      out.write('\n');
      out.write('\n');

/**
 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");

PortalPreferences portalPrefs = PortletPreferencesFactoryUtil.getPortalPreferences(request);

Format dateFormatDate = FastDateFormatFactoryUtil.getDate(locale, timeZone);
Format dateFormatDateTime = FastDateFormatFactoryUtil.getDateTime(locale, timeZone);

      out.write('\n');
      out.write('\n');
      //  liferay-portlet:renderURL
      com.liferay.taglib.portlet.RenderURLTag _jspx_th_liferay_002dportlet_005frenderURL_005f0 = (com.liferay.taglib.portlet.RenderURLTag) _005fjspx_005ftagPool_005fliferay_002dportlet_005frenderURL_0026_005fvarImpl.get(com.liferay.taglib.portlet.RenderURLTag.class);
      _jspx_th_liferay_002dportlet_005frenderURL_005f0.setPageContext(_jspx_page_context);
      _jspx_th_liferay_002dportlet_005frenderURL_005f0.setParent(null);
      // /html/portlet/journal/select_template.jsp(19,0) name = varImpl type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
      _jspx_th_liferay_002dportlet_005frenderURL_005f0.setVarImpl("portletURL");
      int _jspx_eval_liferay_002dportlet_005frenderURL_005f0 = _jspx_th_liferay_002dportlet_005frenderURL_005f0.doStartTag();
      if (_jspx_eval_liferay_002dportlet_005frenderURL_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        if (_jspx_eval_liferay_002dportlet_005frenderURL_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
          out = _jspx_page_context.pushBody();
          _jspx_th_liferay_002dportlet_005frenderURL_005f0.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
          _jspx_th_liferay_002dportlet_005frenderURL_005f0.doInitBody();
        }
        do {
          out.write('\n');
          out.write('   ');
          if (_jspx_meth_portlet_005fparam_005f0(_jspx_th_liferay_002dportlet_005frenderURL_005f0, _jspx_page_context))
            return;
          out.write('\n');
          int evalDoAfterBody = _jspx_th_liferay_002dportlet_005frenderURL_005f0.doAfterBody();
          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
            break;
        } while (true);
        if (_jspx_eval_liferay_002dportlet_005frenderURL_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
          out = _jspx_page_context.popBody();
        }
      }
      if (_jspx_th_liferay_002dportlet_005frenderURL_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
        _005fjspx_005ftagPool_005fliferay_002dportlet_005frenderURL_0026_005fvarImpl.reuse(_jspx_th_liferay_002dportlet_005frenderURL_005f0);
        return;
      }
      _005fjspx_005ftagPool_005fliferay_002dportlet_005frenderURL_0026_005fvarImpl.reuse(_jspx_th_liferay_002dportlet_005frenderURL_005f0);
      javax.portlet.PortletURL portletURL = null;
      portletURL = (javax.portlet.PortletURL) _jspx_page_context.findAttribute("portletURL");
      out.write('\n');
      out.write('\n');
      //  aui:form
      com.liferay.taglib.aui.FormTag _jspx_th_aui_005fform_005f0 = (com.liferay.taglib.aui.FormTag) _005fjspx_005ftagPool_005faui_005fform_0026_005fname_005fmethod_005faction.get(com.liferay.taglib.aui.FormTag.class);
      _jspx_th_aui_005fform_005f0.setPageContext(_jspx_page_context);
      _jspx_th_aui_005fform_005f0.setParent(null);
      // /html/portlet/journal/select_template.jsp(23,0) name = action type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
      _jspx_th_aui_005fform_005f0.setAction( portletURL.toString() );
      // /html/portlet/journal/select_template.jsp(23,0) null
      _jspx_th_aui_005fform_005f0.setDynamicAttribute(null, "method", new String("post"));
      // /html/portlet/journal/select_template.jsp(23,0) name = name type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
      _jspx_th_aui_005fform_005f0.setName("fm");
      int _jspx_eval_aui_005fform_005f0 = _jspx_th_aui_005fform_005f0.doStartTag();
      if (_jspx_eval_aui_005fform_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        if (_jspx_eval_aui_005fform_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
          out = _jspx_page_context.pushBody();
          _jspx_th_aui_005fform_005f0.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
          _jspx_th_aui_005fform_005f0.doInitBody();
        }
        do {
          out.write('\n');
          out.write('\n');
          out.write('   ');

   TemplateSearch searchContainer = new TemplateSearch(renderRequest, 10, portletURL);
   
          out.write('\n');
          out.write('\n');
          out.write('   ');
          if (_jspx_meth_liferay_002dui_005fheader_005f0(_jspx_th_aui_005fform_005f0, _jspx_page_context))
            return;
          out.write('\n');
          out.write('\n');
          out.write('   ');
          //  liferay-ui:search-form
          com.liferay.taglib.ui.SearchFormTag _jspx_th_liferay_002dui_005fsearch_002dform_005f0 = (com.liferay.taglib.ui.SearchFormTag) _005fjspx_005ftagPool_005fliferay_002dui_005fsearch_002dform_0026_005fsearchContainer_005fpage_005fnobody.get(com.liferay.taglib.ui.SearchFormTag.class);
          _jspx_th_liferay_002dui_005fsearch_002dform_005f0.setPageContext(_jspx_page_context);
          _jspx_th_liferay_002dui_005fsearch_002dform_005f0.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_aui_005fform_005f0);
          // /html/portlet/journal/select_template.jsp(33,1) name = page type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
          _jspx_th_liferay_002dui_005fsearch_002dform_005f0.setPage("/html/portlet/journal/template_search.jsp");
          // /html/portlet/journal/select_template.jsp(33,1) name = searchContainer type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
          _jspx_th_liferay_002dui_005fsearch_002dform_005f0.setSearchContainer( searchContainer );
          int _jspx_eval_liferay_002dui_005fsearch_002dform_005f0 = _jspx_th_liferay_002dui_005fsearch_002dform_005f0.doStartTag();
          if (_jspx_th_liferay_002dui_005fsearch_002dform_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005fliferay_002dui_005fsearch_002dform_0026_005fsearchContainer_005fpage_005fnobody.reuse(_jspx_th_liferay_002dui_005fsearch_002dform_005f0);
            return;
          }
          _005fjspx_005ftagPool_005fliferay_002dui_005fsearch_002dform_0026_005fsearchContainer_005fpage_005fnobody.reuse(_jspx_th_liferay_002dui_005fsearch_002dform_005f0);
          out.write('\n');
          out.write('\n');
          out.write('   ');

   TemplateSearchTerms searchTerms = (TemplateSearchTerms)searchContainer.getSearchTerms();

   searchTerms.setStructureId(StringPool.BLANK);
   searchTerms.setStructureIdComparator(StringPool.NOT_EQUAL);
   
          out.write('\n');
          out.write('\n');
          out.write('   ');

/**
 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

          out.write('\n');
          out.write('\n');

int total = 0;

if (searchTerms.isAdvancedSearch()) {
   total = JournalTemplateLocalServiceUtil.searchCount(company.getCompanyId(), searchTerms.getGroupId(), searchTerms.getTemplateId(), searchTerms.getStructureId(), searchTerms.getStructureIdComparator(), searchTerms.getName(), searchTerms.getDescription(), searchTerms.isAndOperator());
}
else {
   total = JournalTemplateLocalServiceUtil.searchCount(company.getCompanyId(), searchTerms.getGroupId(), searchTerms.getKeywords(), searchTerms.getStructureId(), searchTerms.getStructureIdComparator());
}

searchContainer.setTotal(total);

List results = null;

if (searchTerms.isAdvancedSearch()) {
   results = JournalTemplateLocalServiceUtil.search(company.getCompanyId(), searchTerms.getGroupId(), searchTerms.getTemplateId(), searchTerms.getStructureId(), searchTerms.getStructureIdComparator(), searchTerms.getName(), searchTerms.getDescription(), searchTerms.isAndOperator(), searchContainer.getStart(), searchContainer.getEnd(), null);
}
else {
   results = JournalTemplateLocalServiceUtil.search(company.getCompanyId(), searchTerms.getGroupId(), searchTerms.getKeywords(), searchTerms.getStructureId(), searchTerms.getStructureIdComparator(), searchContainer.getStart(), searchContainer.getEnd(), null);
}

searchContainer.setResults(results);

          out.write("\n");
          out.write("\n");
          out.write("\t<div class=\"separator\"><!-- --></div>\n");
          out.write("\n");
          out.write("\t");


   List resultRows = searchContainer.getResultRows();

   for (int i = 0; i < results.size(); i++) {
      JournalTemplate template = (JournalTemplate)results.get(i);

      template = template.toEscapedModel();

      ResultRow row = new ResultRow(template, template.getId(), i);

      StringBundler sb = new StringBundler(7);

      sb.append("javascript:opener.");
      sb.append(renderResponse.getNamespace());
      sb.append("selectTemplate('");
      sb.append(template.getStructureId());
      sb.append("', '");
      sb.append(template.getTemplateId());
      sb.append("'); window.close();");

      String rowHREF = sb.toString();

      row.setParameter("rowHREF", rowHREF);

      // Template id

      row.addText(template.getTemplateId(), rowHREF);

      // Name, description, and image

      row.addJSP("/html/portlet/journal/template_description.jsp");

      // Add result row

      resultRows.add(row);
   }
   
          out.write('\n');
          out.write('\n');
          out.write('   ');
          //  liferay-ui:search-iterator
          com.liferay.taglib.ui.SearchIteratorTag _jspx_th_liferay_002dui_005fsearch_002diterator_005f0 = (com.liferay.taglib.ui.SearchIteratorTag) _005fjspx_005ftagPool_005fliferay_002dui_005fsearch_002diterator_0026_005fsearchContainer_005fnobody.get(com.liferay.taglib.ui.SearchIteratorTag.class);
          _jspx_th_liferay_002dui_005fsearch_002diterator_005f0.setPageContext(_jspx_page_context);
          _jspx_th_liferay_002dui_005fsearch_002diterator_005f0.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_aui_005fform_005f0);
          // /html/portlet/journal/select_template.jsp(88,1) name = searchContainer type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
          _jspx_th_liferay_002dui_005fsearch_002diterator_005f0.setSearchContainer( searchContainer );
          int _jspx_eval_liferay_002dui_005fsearch_002diterator_005f0 = _jspx_th_liferay_002dui_005fsearch_002diterator_005f0.doStartTag();
          if (_jspx_th_liferay_002dui_005fsearch_002diterator_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005fliferay_002dui_005fsearch_002diterator_0026_005fsearchContainer_005fnobody.reuse(_jspx_th_liferay_002dui_005fsearch_002diterator_005f0);
            return;
          }
          _005fjspx_005ftagPool_005fliferay_002dui_005fsearch_002diterator_0026_005fsearchContainer_005fnobody.reuse(_jspx_th_liferay_002dui_005fsearch_002diterator_005f0);
          out.write('\n');
          int evalDoAfterBody = _jspx_th_aui_005fform_005f0.doAfterBody();
          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
            break;
        } while (true);
        if (_jspx_eval_aui_005fform_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
          out = _jspx_page_context.popBody();
        }
      }
      if (_jspx_th_aui_005fform_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
        _005fjspx_005ftagPool_005faui_005fform_0026_005fname_005fmethod_005faction.reuse(_jspx_th_aui_005fform_005f0);
        return;
      }
      _005fjspx_005ftagPool_005faui_005fform_0026_005fname_005fmethod_005faction.reuse(_jspx_th_aui_005fform_005f0);
      out.write('\n');
      out.write('\n');
      if (_jspx_meth_aui_005fscript_005f0(_jspx_page_context))
        return;
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try { out.clearBuffer(); } catch (java.io.IOException e) {}
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }

        private boolean _jspx_meth_portlet_005fparam_005f0(
                javax.servlet.jsp.tagext.JspTag _jspx_th_liferay_002dportlet_005frenderURL_005f0,
                PageContext _jspx_page_context) throws Throwable {
            PageContext pageContext = _jspx_page_context;
            JspWriter out = _jspx_page_context.getOut();
            //  portlet:param
            com.liferay.taglib.util.ParamTag _jspx_th_portlet_005fparam_005f0 = (com.liferay.taglib.util.ParamTag) _005fjspx_005ftagPool_005fportlet_005fparam_0026_005fvalue_005fname_005fnobody
                    .get(com.liferay.taglib.util.ParamTag.class);
            _jspx_th_portlet_005fparam_005f0.setPageContext(_jspx_page_context);
            _jspx_th_portlet_005fparam_005f0
                    .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_liferay_002dportlet_005frenderURL_005f0);
            // /html/portlet/journal/select_template.jsp(20,1) name = name type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
            _jspx_th_portlet_005fparam_005f0.setName("struts_action");
            // /html/portlet/journal/select_template.jsp(20,1) name = value type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
            _jspx_th_portlet_005fparam_005f0.setValue("/journal/select_template");
            int _jspx_eval_portlet_005fparam_005f0 = _jspx_th_portlet_005fparam_005f0.doStartTag();
            if (_jspx_th_portlet_005fparam_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                _005fjspx_005ftagPool_005fportlet_005fparam_0026_005fvalue_005fname_005fnobody
                        .reuse(_jspx_th_portlet_005fparam_005f0);
                return true;
            }
            _005fjspx_005ftagPool_005fportlet_005fparam_0026_005fvalue_005fname_005fnobody
                    .reuse(_jspx_th_portlet_005fparam_005f0);
            return false;
        }

        private boolean _jspx_meth_liferay_002dui_005fheader_005f0(
                javax.servlet.jsp.tagext.JspTag _jspx_th_aui_005fform_005f0, PageContext _jspx_page_context)
                throws Throwable {
            PageContext pageContext = _jspx_page_context;
            JspWriter out = _jspx_page_context.getOut();
            //  liferay-ui:header
            com.liferay.taglib.ui.HeaderTag _jspx_th_liferay_002dui_005fheader_005f0 = (com.liferay.taglib.ui.HeaderTag) _005fjspx_005ftagPool_005fliferay_002dui_005fheader_0026_005ftitle_005fnobody
                    .get(com.liferay.taglib.ui.HeaderTag.class);
            _jspx_th_liferay_002dui_005fheader_005f0.setPageContext(_jspx_page_context);
            _jspx_th_liferay_002dui_005fheader_005f0
                    .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_aui_005fform_005f0);
            // /html/portlet/journal/select_template.jsp(29,1) name = title type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
            _jspx_th_liferay_002dui_005fheader_005f0.setTitle("templates");
            int _jspx_eval_liferay_002dui_005fheader_005f0 = _jspx_th_liferay_002dui_005fheader_005f0.doStartTag();
            if (_jspx_th_liferay_002dui_005fheader_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                _005fjspx_005ftagPool_005fliferay_002dui_005fheader_0026_005ftitle_005fnobody
                        .reuse(_jspx_th_liferay_002dui_005fheader_005f0);
                return true;
            }
            _005fjspx_005ftagPool_005fliferay_002dui_005fheader_0026_005ftitle_005fnobody
                    .reuse(_jspx_th_liferay_002dui_005fheader_005f0);
            return false;
        }

        private boolean _jspx_meth_aui_005fscript_005f0(PageContext _jspx_page_context) throws Throwable {
            PageContext pageContext = _jspx_page_context;
            JspWriter out = _jspx_page_context.getOut();
            //  aui:script
            com.liferay.taglib.aui.ScriptTag _jspx_th_aui_005fscript_005f0 = (com.liferay.taglib.aui.ScriptTag) _005fjspx_005ftagPool_005faui_005fscript
                    .get(com.liferay.taglib.aui.ScriptTag.class);
            _jspx_th_aui_005fscript_005f0.setPageContext(_jspx_page_context);
            _jspx_th_aui_005fscript_005f0.setParent(null);
            int _jspx_eval_aui_005fscript_005f0 = _jspx_th_aui_005fscript_005f0.doStartTag();
            if (_jspx_eval_aui_005fscript_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                if (_jspx_eval_aui_005fscript_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                    out = _jspx_page_context.pushBody();
                    _jspx_th_aui_005fscript_005f0.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
                    _jspx_th_aui_005fscript_005f0.doInitBody();
                }
                do {
                    out.write("\n");
                    out.write("\tLiferay.Util.focusFormField(document.");
                    if (_jspx_meth_portlet_005fnamespace_005f0(_jspx_th_aui_005fscript_005f0, _jspx_page_context))
                        return true;
                    out.write('f');
                    out.write('m');
                    out.write('.');
                    if (_jspx_meth_portlet_005fnamespace_005f1(_jspx_th_aui_005fscript_005f0, _jspx_page_context))
                        return true;
                    out.write("searchTemplateId);\n");
                    int evalDoAfterBody = _jspx_th_aui_005fscript_005f0.doAfterBody();
                    if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                        break;
                } while (true);
                if (_jspx_eval_aui_005fscript_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                    out = _jspx_page_context.popBody();
                }
            }
            if (_jspx_th_aui_005fscript_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                _005fjspx_005ftagPool_005faui_005fscript.reuse(_jspx_th_aui_005fscript_005f0);
                return true;
            }
            _005fjspx_005ftagPool_005faui_005fscript.reuse(_jspx_th_aui_005fscript_005f0);
            return false;
        }

        private boolean _jspx_meth_portlet_005fnamespace_005f0(
                javax.servlet.jsp.tagext.JspTag _jspx_th_aui_005fscript_005f0, PageContext _jspx_page_context)
                throws Throwable {
            PageContext pageContext = _jspx_page_context;
            JspWriter out = _jspx_page_context.getOut();
            //  portlet:namespace
            com.liferay.taglib.portlet.NamespaceTag _jspx_th_portlet_005fnamespace_005f0 = (com.liferay.taglib.portlet.NamespaceTag) _005fjspx_005ftagPool_005fportlet_005fnamespace_005fnobody
                    .get(com.liferay.taglib.portlet.NamespaceTag.class);
            _jspx_th_portlet_005fnamespace_005f0.setPageContext(_jspx_page_context);
            _jspx_th_portlet_005fnamespace_005f0
                    .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_aui_005fscript_005f0);
            int _jspx_eval_portlet_005fnamespace_005f0 = _jspx_th_portlet_005fnamespace_005f0.doStartTag();
            if (_jspx_th_portlet_005fnamespace_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                _005fjspx_005ftagPool_005fportlet_005fnamespace_005fnobody.reuse(_jspx_th_portlet_005fnamespace_005f0);
                return true;
            }
            _005fjspx_005ftagPool_005fportlet_005fnamespace_005fnobody.reuse(_jspx_th_portlet_005fnamespace_005f0);
            return false;
        }

        private boolean _jspx_meth_portlet_005fnamespace_005f1(
                javax.servlet.jsp.tagext.JspTag _jspx_th_aui_005fscript_005f0, PageContext _jspx_page_context)
                throws Throwable {
            PageContext pageContext = _jspx_page_context;
            JspWriter out = _jspx_page_context.getOut();
            //  portlet:namespace
            com.liferay.taglib.portlet.NamespaceTag _jspx_th_portlet_005fnamespace_005f1 = (com.liferay.taglib.portlet.NamespaceTag) _005fjspx_005ftagPool_005fportlet_005fnamespace_005fnobody
                    .get(com.liferay.taglib.portlet.NamespaceTag.class);
            _jspx_th_portlet_005fnamespace_005f1.setPageContext(_jspx_page_context);
            _jspx_th_portlet_005fnamespace_005f1
                    .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_aui_005fscript_005f0);
            int _jspx_eval_portlet_005fnamespace_005f1 = _jspx_th_portlet_005fnamespace_005f1.doStartTag();
            if (_jspx_th_portlet_005fnamespace_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                _005fjspx_005ftagPool_005fportlet_005fnamespace_005fnobody.reuse(_jspx_th_portlet_005fnamespace_005f1);
                return true;
            }
            _005fjspx_005ftagPool_005fportlet_005fnamespace_005fnobody.reuse(_jspx_th_portlet_005fnamespace_005f1);
            return false;
        }
    }