Control API for Document (document, documentBody, documentHead)

There are three HTMLB elements for a document, which correspond to HTML elements as follows:

  • document: Renders the root tag of the document, e.g. <html> or <wml>
  • documentBody: Renders the <body> section of the document
  • documentHead: Renders the <head> section of the document

 

document

Renders the root tag of the document (e.g. <html> or <wml>) depending on the markup language used. It is a plain HTML tag with no attributes.

attribute

req. values default case sens. JSP taglib classlib
id yes   none yes   setDocumentId("myContent")
title no String none no   setTitle("SAPPortals")

 

Example
<hbj:content id="myContent">
   <hbj:document>
     ...
   </hbj:document>
</hbj:content>

 

documentBody

Renders <body> section of the document and attaches the appropriate style class. It is a plain HTML tag with no attributes.

 

Example
<hbj:content id="myContent">
   <hbj:document>
     <hbj:documentBody>
       ...
     </hbj:documentBody>
   </hbj:document>
</hbj:content>

 

documentHead

Renders <head> section of the document and includes the necessary style sheets and scripts. It is a plain HTML tag. In the documentHead a nested META element (standard HTML) can be used. With META element information about the document (name, content, scheme, http-equiv) can be specified.

  • title
    Set the title that is usually displayed in the title bar of the web client.

attribute

req. values default case sens. JSP taglib classlib
title no String none no title="SAPPortals" see 'document'

 

Example
<hbj:content id="myContent">
   <hbj:document>
     <hbj:documentHead title="SAPPortals">
       <meta name="description" content="Introduction page">
       <meta name="author" content="SAPPortals">
       <meta name="date" content="Jan. 2002">
       ...
     </hbj:documentHead>
     <hbj:documentBody>
       ...
     </hbj:documentBody>
   </hbj:document>
</hbj:content>