com.opensymphony.module.sitemesh
Interface HTMLPage

All Superinterfaces:
Page
All Known Implementing Classes:
AbstractHTMLPage, FastPage

public interface HTMLPage
extends Page

Extension of Page providing access to HTML data.

The page is parsed and the <title>, <head> (minus the <title>) and <body> are split into chunks. These can then be used by a Decorator. Properties are also extracted from the HTML.

Page Properties

When the page is parsed, values from certain tags are added to the properties to allow easy access to them. The following tags have properties extracted from them.

Example

   
     <html template="funky">
       <head>
         <title>My Funky Page</title>
         <meta name="description" content="Description of my page.">
         <meta name="author" content="Bob">
         ...
       </head>
       <body text="#ff00ff" bgcolor="green">
         ...
       </body>
     </html>
   
 template=funky
 title=My Funky Page
 meta.description=Description of my page.
 meta.author=Bob
 body.text=#ff00ff
 body.bgcolor=green
 

Version:
$Revision: 1.1 $
Author:
Joe Walnes

Method Summary
 boolean isFrameSet()
          Check to see if this page contains an HTML frameset.
 void writeHead(Writer out)
          Write the contents of the <head> tag.
 
Methods inherited from interface com.opensymphony.module.sitemesh.Page
addProperty, getBooleanProperty, getContentLength, getIntProperty, getLongProperty, getProperties, getProperty, getPropertyKeys, getRequest, getTitle, isPropertySet, setRequest, writeBody, writePage
 

Method Detail

writeHead

void writeHead(Writer out)
               throws IOException
Write the contents of the <head> tag.

Throws:
IOException

isFrameSet

boolean isFrameSet()
Check to see if this page contains an HTML frameset.


www.opensymphony.com/sitemesh/