Package net.sf.jportlet.web.taglib

Source Code of net.sf.jportlet.web.taglib.HeaderTag

/*
* Created on 21-May-2003
*/
package net.sf.jportlet.web.taglib;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.jsp.JspWriter;


/**
* This Tag renders the header of the page
*
* @author <a href="mailto:tchbansi@sourceforge.net">Herve Tchepannou</a>
*
* @jsp.tag
*      name="header"
*      body-content="JSP"
*      display-name="Header Tag"
*/
public class HeaderTag
    extends ClientAwareTag
{
    //~ Methods ----------------------------------------------------------------

    /**
     * @see net.sf.jportlet.web.taglib.BaseTag#doEndHtml(javax.servlet.http.HttpServletRequest)
     */
    protected int doEndHtml( HttpServletRequest request )
        throws IOException
    {
        pageContext.getOut(  ).write( "</table></td></tr>\n" );
        return EVAL_PAGE;
    }

    /**
     * @see net.sf.jportlet.web.taglib.BaseTag#doStartHtml(javax.servlet.http.HttpServletRequest)
     */
    protected int doStartHtml( HttpServletRequest request )
        throws IOException
    {
    JspWriter out = pageContext.getOut(  );
   
    out.write( "<tr><td valign='top'" );
    outputCss();
        out.write( "><table width='100%' border='0' cellspacing='0' cellpadding='0'>\n" );
        return EVAL_BODY_INCLUDE;
    }
}
TOP

Related Classes of net.sf.jportlet.web.taglib.HeaderTag

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.