Latest Tutorials| Questions and Answers|Ask Questions?|Site Map

Home Jsf Apache-myfaces-tomahawk Tomahawk document tag

Related Tutorials


Share on Google+Share on Google+

Tomahawk document tag

This tag is used to embed whole document into it.

Tomahawk document tag


This tag is used to embed whole document into it. It is equivalent to the HTML <html> tag. We can use this tag in place of <html> tag in our JSP page. It has only one attribute "state" that is used to specify the state stored by this component. 

Code Description : 

<%@ taglib uri="" prefix="h"%>
<%@ taglib uri="" prefix="f"%>
<%@ taglib uri="" prefix="t"%>

	    <meta http-equiv="Content-Type"
		 content="text/html; charset=iso-8859-1">
	     <title>t:document example</title>
	<body >
		<t:outputText value="The document tag
                     is equivalent to HTML <html> tag."/>

Rendered Output :


Html Source Code :

<meta http-equiv="Content-Type" content="text/html;
<title>t:document example</title>
  <body >
    <form id="_idJsp1" name="_idJsp1" method="post"
The document tag is equivalent to HTML &lt;html&gt; tag.
<input type="hidden" name="_idJsp1_SUBMIT" value="1" />
<input type="hidden" name="javax.faces.ViewState"
id="javax.faces.ViewState" value="rO0ABXVyABNbTGphdmEub
............" />

This tag contains attributes given below :

  • state :This attribute is used to specify the state stored by this component.

If you enjoyed this post then why not add us on Google+? Add us to your Circles

Liked it!  Share this Tutorial

Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: June 9, 2009

Related Tutorials

Discuss: Tomahawk document tag  

Post your Comment

Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image