BodyTag.java :  » Portal » jportlet » net » sf » jportlet » web » taglib » Java Open Source

Java Open Source » Portal » jportlet 
jportlet » net » sf » jportlet » web » taglib » BodyTag.java
/*
 * Created on 21-May-2003
 */
package net.sf.jportlet.web.taglib;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;


/**
 * This Tag renders the body of the page
 *
 * @author <a href="mailto:tchbansi@sourceforge.net">Herve Tchepannou</a>
 *
 * @jsp.tag
 *      name="body"
 *      body-content="JSP"
 *      display-name="Body Tag"
 */
public class BodyTag
    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( "</tr></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
    {
        pageContext.getOut(  ).write( "<tr><td valign='top'><table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>\n" );
        return EVAL_BODY_INCLUDE;
    }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.