public void setDocumentType(String docType)
    {
        int rendering = 0;
        if (docType != null) {
            if (docType.equals(Html.HTML_401))
                rendering = TagRenderingBase.HTML_RENDERING;
            else if (docType.equals(Html.HTML_401_QUIRKS))
                rendering = TagRenderingBase.HTML_RENDERING_QUIRKS;
            else if (docType.equals(Html.XHTML_10))
                rendering = TagRenderingBase.XHTML_RENDERING;
            else
                rendering = TagRenderingBase.getDefaultDocType();
        }
        else {
            rendering = TagRenderingBase.getDefaultDocType();
        }
        pageContext.getRequest().setAttribute(Html.DOC_TYPE_OVERRIDE, new Integer(rendering));
    }
public void setDocumentType ( String docType ) { int rendering = 0 ; if ( docType != null ) { if ( docType . equals ( Html . HTML_401 ) ) rendering = TagRenderingBase . HTML_RENDERING ; else if ( docType . equals ( Html . HTML_401_QUIRKS ) ) rendering = TagRenderingBase . HTML_RENDERING_QUIRKS ; else if ( docType . equals ( Html . XHTML_10 ) ) rendering = TagRenderingBase . XHTML_RENDERING ; else rendering = TagRenderingBase . getDefaultDocType ( ) ; } else { rendering = TagRenderingBase . getDefaultDocType ( ) ; } pageContext . getRequest ( ) . setAttribute ( Html . DOC_TYPE_OVERRIDE , new Integer ( rendering ) ) ; }
@netui:attribute required="false" rtexprvalue="true"
description="Set the document type (html4-loose or xhtml1-transitional) of the document."