Package cn.com.customtags.taghandler

Source Code of cn.com.customtags.taghandler.HtmlCompositionTag

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package cn.com.customtags.taghandler;

import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.JspFragment;

/**
*
* @author kete
*/
public class HtmlCompositionTag extends AbstractComposition {

    /**
     * Called by the container to invoke this tag.
     * The implementation of this method is provided by the tag library developer,
     * and handles all tag processing, body iteration, etc.
     */
    @Override
    public void doTag() throws JspException {
        JspWriter out = getJspContext().getOut();

        try {

            JspFragment f = getJspBody();
            if (f != null) {
                f.invoke(out);
            }



        } catch (java.io.IOException ex) {
            throw new JspException("Error in HtmlCompositionTagHandler tag", ex);
        }
    }
}
TOP

Related Classes of cn.com.customtags.taghandler.HtmlCompositionTag

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.