001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.taglib.theme;
016    
017    import javax.servlet.RequestDispatcher;
018    import javax.servlet.ServletContext;
019    import javax.servlet.http.HttpServletRequest;
020    import javax.servlet.http.HttpServletResponse;
021    
022    /**
023     * @author Brian Wing Shun Chan
024     */
025    public class MetaTagsTag extends com.liferay.taglib.util.IncludeTag {
026    
027            public static void doTag(
028                            ServletContext servletContext, HttpServletRequest request,
029                            HttpServletResponse response)
030                    throws Exception {
031    
032                    doTag(_PAGE, servletContext, request, response);
033            }
034    
035            public static void doTag(
036                            String page, ServletContext servletContext,
037                            HttpServletRequest request, HttpServletResponse response)
038                    throws Exception {
039    
040                    RequestDispatcher requestDispatcher =
041                            servletContext.getRequestDispatcher(page);
042    
043                    requestDispatcher.include(request, response);
044            }
045    
046            protected String getPage() {
047                    return _PAGE;
048            }
049    
050            private static final String _PAGE = "/html/taglib/theme/meta_tags/page.jsp";
051    
052    }